@import url("/assets/shared/common.css");

:root {
  --paper: #e7e8df;
  --paper-light: #f3f0e7;
  --ink: #172321;
  --muted: #5d6763;
  --accent: #f0643b;
  --accent-dark: #c94827;
  --teal: #0f5a59;
  --line: #aeb8b0;
  --white: #fbfaf4;
  --yellow: #f2c94c;
  --blue: #8ebfca;
  --bench: #101c1b;
  --bench-soft: #18302d;
  --shadow: 10px 12px 0 rgba(16, 28, 27, 0.16);
  --radius: 3px;
}

body {
  background: var(--paper);
  font-family: "Be Vietnam Pro", sans-serif;
}

h1,
h2,
h3,
.brand,
.contact-address {
  font-family: "Be Vietnam Pro", sans-serif;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #f8f4e8;
  background: rgba(16, 28, 27, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand::before {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.55rem;
  border: 3px solid var(--yellow);
  content: "";
  transform: rotate(45deg);
}

.brand span {
  color: var(--accent);
}

.nav-list a {
  border: 1px solid transparent;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-list a:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.nav-list a[aria-current="page"] {
  color: var(--bench);
  border-color: var(--yellow);
  background: var(--yellow);
}

.skip-link {
  color: var(--bench);
  border-radius: 2px;
  background: var(--yellow);
}

:focus-visible {
  outline-color: var(--yellow);
}

.button {
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  border-radius: 2px;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.button-primary {
  color: var(--bench);
  border-color: var(--yellow);
  background: var(--yellow);
}

.button-primary:hover {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.button-secondary {
  color: currentColor;
  border-color: currentColor;
}

.button-secondary:hover {
  color: var(--bench);
  border-color: var(--blue);
  background: var(--blue);
}

.eyebrow,
.bench-code {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  background: transparent;
  transform: rotate(45deg) scale(0.62);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background-color: var(--bench);
  background-image:
    linear-gradient(rgba(142, 191, 202, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 191, 202, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(142, 191, 202, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 191, 202, 0.03) 1px, transparent 1px);
  background-position: center;
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px dashed rgba(242, 201, 76, 0.35);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.bench-code {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--yellow);
}

.bench-code::before {
  width: 2.3rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.15rem, 6.4vw, 6.7rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 59ch;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.hero .button-row {
  margin-top: 2rem;
}

.hero-specs {
  display: grid;
  max-width: 590px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 1px;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
}

.hero-specs li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  background: var(--bench);
}

.hero-specs b {
  color: var(--yellow);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.hero-specs span {
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 16px 18px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(1deg);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  width: 4.5rem;
  height: 1.4rem;
  background: rgba(242, 201, 76, 0.8);
  content: "";
}

.hero-visual::before {
  top: -0.55rem;
  left: 2.2rem;
  transform: rotate(-3deg);
}

.hero-visual::after {
  right: 2rem;
  bottom: 3.8rem;
  transform: rotate(4deg);
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-visual figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0.25rem 0.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.hero-visual figcaption span {
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.build-sequence {
  color: var(--bench);
  background: var(--yellow);
}

.sequence-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 3.5rem;
}

.sequence-grid .eyebrow {
  color: var(--bench);
}

.sequence-grid h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.sequence-grid ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: rgba(16, 28, 27, 0.28);
}

.sequence-grid li {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 1rem;
  background: var(--yellow);
}

.sequence-grid li > span {
  margin-bottom: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sequence-grid strong {
  font-size: 0.88rem;
}

.sequence-grid small {
  margin-top: 0.4rem;
  color: rgba(16, 28, 27, 0.68);
  font-size: 0.7rem;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 1rem 5rem;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.45rem, 5.4vw, 5.1rem);
}

.section-heading > p:last-child {
  align-self: end;
  margin: 0;
  color: var(--muted);
}

.project-picker {
  background:
    radial-gradient(circle at 8% 15%, rgba(240, 100, 59, 0.12), transparent 24rem),
    var(--paper-light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: grid;
  min-height: 420px;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 8px 0 rgba(16, 28, 27, 0.12);
}

.project-card:first-child,
.project-card:last-child {
  grid-column: 1 / -1;
  min-height: 500px;
  grid-template-columns: 1.2fr 0.8fr;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid var(--ink);
  background: var(--bench-soft);
}

.project-room img {
  background: #c9d6d0;
}

.project-scene img {
  background: #f2c94c;
}

.project-vehicle img {
  background: #9fc5ce;
}

.project-kit img {
  background: #d9b785;
}

.project-card > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.project-card span {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.project-card h3 {
  margin: 0.7rem 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.scale-lab {
  position: relative;
  overflow: hidden;
  background-color: #d8ded8;
  background-image:
    linear-gradient(rgba(15, 90, 89, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 90, 89, 0.11) 1px, transparent 1px);
  background-size: 32px 32px;
}

.scale-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.scale-copy h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.scale-copy p:not(.eyebrow) {
  color: #46524e;
}

.scale-copy a {
  display: inline-flex;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 800;
  text-underline-offset: 0.35rem;
}

.scale-board {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border: 2px solid var(--ink);
  background: rgba(251, 250, 244, 0.9);
  box-shadow: 12px 14px 0 var(--teal);
}

.scale-object {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.scale-object span,
.scale-row b {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.scale-object strong {
  font-size: 1.4rem;
}

.scale-object i {
  height: 8px;
  background: var(--accent);
}

.scale-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.8rem;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
}

.scale-row em {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.bar {
  display: block;
  height: 16px;
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.bar-12 { width: 100%; }
.bar-24 { width: 50%; }
.bar-48 { width: 25%; }

.scale-board > p {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.finish-bench {
  color: white;
  background: var(--teal);
}

.finish-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.finish-title {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.finish-title .eyebrow {
  color: var(--yellow);
}

.finish-title h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
}

.finish-title > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.paint-chip {
  display: inline-block;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 0.4rem 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.chip-one { background: var(--accent); transform: rotate(5deg); }
.chip-two { background: var(--yellow); transform: rotate(-3deg); }
.chip-three { background: var(--blue); transform: rotate(8deg); }

.layer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.layer-list li {
  display: grid;
  min-height: 150px;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.layer-list b {
  color: var(--yellow);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.layer-list div {
  display: grid;
  gap: 0.35rem;
}

.layer-list strong {
  font-size: 1.2rem;
}

.layer-list span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

.finish-link {
  grid-column: 2;
  width: fit-content;
  color: var(--yellow);
  font-weight: 800;
  text-underline-offset: 0.35rem;
}

.roadmap {
  background: var(--bench);
  color: white;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 7vw, 6rem);
}

.roadmap .eyebrow {
  color: var(--accent);
}

.roadmap h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.roadmap-grid article {
  min-height: 240px;
  padding: 1.4rem;
  background: var(--bench);
}

.roadmap-grid span {
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.roadmap-grid h3 {
  margin: 3.7rem 0 0.6rem;
  font-size: 1.1rem;
}

.roadmap-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.cooperation-summary {
  color: var(--bench);
  background: var(--yellow);
}

.cooperation-panel {
  align-items: start;
}

.cooperation-panel .eyebrow {
  color: var(--bench);
}

.cooperation-panel h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
}

.cooperation-panel p {
  color: rgba(16, 28, 27, 0.76);
}

.cooperation-panel .button-primary {
  color: white;
  border-color: var(--bench);
  background: var(--bench);
}

.cooperation-panel .button-secondary {
  color: var(--bench);
  border-color: var(--bench);
}

.site-footer {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--bench);
}

.footer-main p,
.footer-links a,
.footer-bottom,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.14);
}

.page-hero {
  padding: clamp(4rem, 8vw, 6.8rem) 0;
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
  background-color: var(--bench);
  background-image:
    linear-gradient(rgba(142, 191, 202, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 191, 202, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.page-hero-grid > *,
.content-layout > *,
.article-layout > *,
.contact-layout > *,
.cooperation-panel > * {
  min-width: 0;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.page-hero p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.24);
}

.page-hero > .container:not(.page-hero-grid) {
  position: relative;
  padding-left: clamp(1rem, 4vw, 3rem);
  border-left: 8px solid var(--yellow);
}

.page-hero > .container:not(.page-hero-grid) .eyebrow {
  color: var(--yellow);
}

.content-page,
.simple-page .section {
  background: var(--paper-light);
}

.content-layout,
.article-layout,
.contact-layout {
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
}

.update-box,
.article-aside,
.contact-note,
.contact-panel {
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 7px 8px 0 rgba(16, 28, 27, 0.12);
}

.update-box {
  position: sticky;
  top: 7rem;
}

.status-light {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #4ab477;
  box-shadow: 0 0 0 4px rgba(74, 180, 119, 0.14);
}

.content-copy h2,
.prose h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.content-copy h3 {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.content-copy p,
.content-copy li,
.prose p,
.prose li {
  color: #46514d;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

.contact-address {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.error-main {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding-block: 4rem;
  color: white;
  background: var(--bench);
}

.error-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.error-code {
  color: transparent;
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
  -webkit-text-stroke: 2px var(--yellow);
}

.error-layout h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.error-layout p:not(.bench-code) {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 980px) {
  .hero-grid,
  .scale-layout,
  .finish-layout,
  .roadmap-layout,
  .page-hero-grid,
  .content-layout,
  .article-layout,
  .contact-layout,
  .cooperation-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    max-width: 62ch;
  }

  .finish-title,
  .update-box {
    position: static;
  }

  .finish-link {
    grid-column: auto;
  }

  .page-hero img {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .site-header {
    position: relative;
  }

  .project-grid,
  .roadmap-grid,
  .error-layout {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:first-child,
  .project-card:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .sequence-grid ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-specs {
    grid-template-columns: 1fr;
  }

  .hero-visual figcaption {
    grid-template-columns: 1fr;
  }

  .layer-list li {
    min-height: 130px;
  }

  .error-code {
    font-size: 8rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1180px);
  }

  .header-inner {
    gap: 0.65rem;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .nav-list a {
    overflow: hidden;
    padding: 0.58rem;
    text-align: center;
    text-overflow: ellipsis;
  }

  .hero-grid {
    gap: 2.5rem;
    padding-block: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-visual {
    padding: 0.55rem;
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.2);
  }

  .sequence-grid ol {
    grid-template-columns: 1fr;
  }

  .sequence-grid li {
    min-height: 125px;
  }

  .section-heading h2,
  .scale-copy h2,
  .finish-title h2,
  .roadmap h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .scale-board {
    padding: 1rem;
    box-shadow: 6px 7px 0 var(--teal);
  }

  .scale-object {
    grid-template-columns: 1fr auto;
  }

  .scale-object i {
    grid-column: 1 / -1;
  }

  .scale-row {
    grid-template-columns: 2.8rem minmax(0, 1fr) 3.2rem;
    gap: 0.55rem;
  }

  .layer-list li {
    grid-template-columns: 2.5rem 1fr;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.8rem);
    overflow-wrap: break-word;
  }

  .contact-address {
    max-width: 100%;
    font-size: clamp(1.05rem, 6.5vw, 1.75rem);
  }

  .error-layout {
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual {
    animation: bench-in 650ms both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 200ms; }
  .hero-copy > :nth-child(5) { animation-delay: 260ms; }
  .hero-visual { animation-delay: 160ms; }
}

@keyframes bench-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
