:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f7;
  --ink: #15191f;
  --muted: #5d6775;
  --line: #dce3ea;
  --brand: #0a4d7a;
  --brand-strong: #083957;
  --accent: #18a999;
  --accent-dark: #0f7f73;
  --shadow: 0 18px 40px rgba(15, 27, 39, 0.12);
  --radius: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 0.55rem 0.2rem;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.language-link {
  border-left: 1px solid var(--line);
  padding-left: 1.1rem !important;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 22, 35, 0.78), rgba(5, 22, 35, 0.34)),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0), var(--bg));
  z-index: -1;
}

.hero-content,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  color: #fff;
  padding: 5rem 0 8rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 690px;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}

.button:hover {
  background: var(--brand-strong);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 5rem 0;
}

.section.compact {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.service-grid,
.card-grid,
.team-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid.three,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.info-card,
.team-card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  padding: 1.5rem;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.service-card h3,
.info-card h3,
.team-card h3,
.product-card h3 {
  margin: 1rem 0 0.35rem;
  line-height: 1.2;
}

.service-card p,
.info-card p,
.team-card p,
.product-card p {
  color: var(--muted);
  margin: 0;
}

.text-link {
  margin-top: 1rem;
  color: var(--brand);
  font-weight: 800;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.feature:nth-child(even) .feature-media {
  order: 2;
}

.feature-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}

.feature-media img,
.info-card > img,
.product-card img,
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature h2,
.feature h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.16;
}

.feature p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.tech-list {
  margin-top: 1.2rem;
  color: var(--brand-strong);
  font-weight: 750;
}

.page-hero {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  padding: 5rem 0 4rem;
}

.info-card img {
  aspect-ratio: 16 / 10;
}

.info-card-content,
.team-card-content,
.product-card-content {
  padding: 1.25rem;
}

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

.media-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-strong);
}

.media-item figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: start;
}

.spec-layout > img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.spec-panel h3 {
  margin: 1.4rem 0 0.55rem;
}

.spec-panel h3:first-child {
  margin-top: 0;
}

.spec-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.spec-panel li + li {
  margin-top: 0.35rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.drawing-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 2rem;
  align-items: start;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 750;
}

.contact-list dd {
  margin: 0;
}

.site-footer {
  background: #101820;
  color: #d7e0e7;
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-inner p {
  margin: 0.3rem 0;
  color: #b7c3cc;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

.redirect {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.redirect-card {
  width: min(520px, 100%);
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
  }

  .language-link {
    border-left: 0;
    padding-left: 0 !important;
  }

  .hero {
    min-height: 560px;
  }

  .service-grid,
  .card-grid.three,
  .team-grid,
  .product-grid,
  .card-grid.two,
  .media-list,
  .drawing-grid,
  .contact-panel,
  .spec-layout {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-media {
    order: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 500px;
  }

  .section,
  .feature {
    padding: 3rem 0;
  }

  .page-hero .section-inner {
    padding: 3.5rem 0 3rem;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
