:root {
  --ink: #eef5ff;
  --muted: #93a3b8;
  --blue: #08aaf0;
  --blue-deep: #0877d9;
  --navy: #020b18;
  --navy-2: #071423;
  --panel: rgba(10, 27, 45, 0.82);
  --line: rgba(82, 160, 212, 0.22);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(43, 111, 160, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 111, 160, .055) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure, dl, dd, p { margin: 0; }
table { border-collapse: collapse; }

.content-width { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--blue); color: #00111f;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: absolute; z-index: 20; inset: 0 0 auto;
  height: 92px; padding: 0 max(32px, calc((100vw - var(--max)) / 2));
  display: flex; align-items: center; gap: 48px;
  border-bottom: 1px solid rgba(131, 180, 220, .12);
  background: rgba(2, 11, 24, .5); backdrop-filter: blur(8px);
}
.brand { width: 210px; margin-right: auto; }
.brand img { width: 100%; height: 46px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a {
  position: relative; padding: 12px 0; color: #aebdce; font-size: 14px; letter-spacing: .05em;
}
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--blue); transition: right .2s ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: #fff; }
.contact-link {
  padding: 12px 24px; border: 1px solid var(--blue); color: var(--blue);
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
}
.mobile-menu { display: none; }

.hero {
  min-height: 850px; position: relative; isolation: isolate;
  background:
    linear-gradient(90deg, rgba(2, 11, 24, .98) 0%, rgba(2, 11, 24, .84) 49%, rgba(2, 11, 24, .54) 100%),
    linear-gradient(0deg, var(--navy) 0%, transparent 24%),
    url("images/backgrounds/hero-industrial.avif") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(0, 166, 236, .14), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 143px, rgba(72, 139, 188, .055) 144px);
}
.hero-inner { padding-top: 154px; padding-bottom: 72px; }
.overline, .section-label {
  display: flex; align-items: center; gap: 12px; color: var(--blue);
  font-family: Consolas, "Courier New", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
}
.overline span, .section-label span { width: 38px; height: 1px; background: var(--blue); }
.hero h1 {
  margin: 34px 0 20px; max-width: 1020px; color: #f4f8ff;
  font-family: Arial, sans-serif; font-size: clamp(70px, 8vw, 112px); font-weight: 800;
  line-height: .93; letter-spacing: -.055em;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-information { display: grid; grid-template-columns: 1.45fr 1fr; gap: 70px; align-items: end; }
.hero-information > p { max-width: 690px; color: #a8b5c6; font-size: 15px; line-height: 1.9; }
.hero-information dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-information dl div { padding-top: 12px; border-top: 1px solid rgba(8, 170, 240, .55); }
.hero-information dt { color: #fff; font-size: 12px; font-weight: 700; }
.hero-information dd { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.hero-services { display: flex; gap: 14px; margin-top: 32px; }
.hero-service {
  min-width: 240px; padding: 16px 20px; border: 1px solid rgba(130, 171, 205, .35);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  background: rgba(2, 11, 24, .66); transition: background .2s, border-color .2s;
}
.hero-service:first-child { background: var(--blue); border-color: var(--blue); color: #00101e; }
.hero-service:hover { border-color: var(--blue); background: rgba(8, 170, 240, .14); }
.hero-service:first-child:hover { background: #35c2ff; }
.hero-service span { font: 700 9px/1 Consolas, monospace; letter-spacing: .12em; }
.hero-service strong { font-size: 13px; }
.hero-service b { font-size: 20px; }

.goal {
  margin-top: 110px; margin-bottom: 118px; padding: 44px 50px;
  display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: linear-gradient(110deg, rgba(8, 170, 240, .1), rgba(8, 170, 240, .015));
}
.goal > p:last-child {
  margin: 0;
  color: #777d86;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.service-block { padding-top: 70px; padding-bottom: 110px; }
.service-intro {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: end;
  padding-bottom: 58px;
}
.service-intro h2, .expertise h2, .contact h2 {
  margin: 18px 0 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -.055em;
}
.service-description { color: var(--muted); font-size: 14px; }
.service-description p + p { margin-top: 14px; }

.category-banner {
  position: relative; height: 330px; margin-bottom: 72px; overflow: hidden;
  border: 1px solid var(--line); background: #06111f;
}
.category-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,11,24,.7), transparent 60%), rgba(0, 18, 35, .18);
}
.category-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.58) saturate(.72) contrast(1.08); }
.category-banner figcaption {
  position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 28px;
  display: flex; justify-content: space-between; align-items: end;
}
.category-banner figcaption span { color: var(--blue); font: 700 10px Consolas, monospace; letter-spacing: .2em; }
.category-banner figcaption strong { font-size: 18px; }

.technical-item {
  margin-top: 28px; padding: 38px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10, 27, 45, .9), rgba(4, 15, 28, .8));
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}
.technical-item > header { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.technical-item > header span { color: var(--blue); font: 700 12px Consolas, monospace; letter-spacing: .16em; }
.technical-item h3 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.item-subtitle { padding-top: 12px; color: #6e869e; font: 700 11px Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.technical-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 42px; align-items: stretch; margin-top: 28px; }
.technical-grid table { width: 100%; align-self: start; font-size: 13px; }
.technical-grid th, .technical-grid td { padding: 12px 8px; border-bottom: 1px solid rgba(110, 152, 184, .14); text-align: left; vertical-align: top; }
.technical-grid th { width: 34%; color: #7f93a8; font-weight: 500; }
.technical-grid td { color: #d9e6f3; }
.technical-list { margin: 0; padding: 8px 0 0; list-style: none; color: #c8d7e5; }
.technical-list li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid rgba(110, 152, 184, .12); }
.technical-list li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.technical-list.english { font-family: Arial, sans-serif; font-size: 14px; }
.tech-frame { position: relative; min-width: 0; border: 1px solid rgba(8,170,240,.3); background: #08111e; overflow: hidden; }
.tech-frame::before, .tech-frame::after {
  content: ""; position: absolute; z-index: 3; width: 28px; height: 28px; pointer-events: none;
}
.tech-frame::before { left: -1px; top: -1px; border-left: 1px solid var(--blue); border-top: 1px solid var(--blue); }
.tech-frame::after { right: -1px; bottom: -1px; border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.image-stage { height: 360px; overflow: hidden; background: #0a1421; }
.image-stage img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.68) saturate(.72) contrast(1.06); }
.cfd-cover .image-stage img { object-fit: cover; }
.portrait-result .image-stage { height: 460px; }
.tech-frame figcaption {
  min-height: 44px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 20px;
  background: rgba(2, 11, 24, .96); font-size: 10px;
}
.tech-frame figcaption span { color: var(--blue); font: 700 9px Consolas, monospace; letter-spacing: .18em; }
.tech-frame figcaption small { color: #a6b5c5; }

.engineering-wrap {
  position: relative; background: linear-gradient(180deg, rgba(8, 170, 240, .035), rgba(8,170,240,.01));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
}
.engineering-wrap::before {
  content: "ANALYSIS"; position: absolute; right: -22px; top: 150px;
  color: rgba(8,170,240,.035); font: 900 150px/1 Arial, sans-serif; letter-spacing: -.06em;
  writing-mode: vertical-rl;
}

.expertise { padding-top: 130px; padding-bottom: 130px; }
.expertise > header { display: grid; grid-template-columns: 250px 1fr; align-items: start; }
.expertise-grid { margin-top: 65px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.expertise-copy { color: var(--muted); font-size: 14px; line-height: 1.9; }
.expertise ol { margin: 34px 0 0; padding: 0; list-style: none; }
.expertise li { padding: 18px 0; display: grid; grid-template-columns: 44px 1fr; gap: 18px; border-top: 1px solid var(--line); }
.expertise li > span { color: var(--blue); font: 700 11px Consolas, monospace; }
.expertise li strong { display: block; font-size: 16px; }
.expertise li p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.location-card { min-height: 500px; }
.location-card iframe { width: 100%; height: 330px; border: 0; filter: grayscale(1) invert(.9) hue-rotate(165deg) brightness(.55) contrast(1.25); }
.location-card address { padding: 24px 28px; background: rgba(2,11,24,.95); font-style: normal; }
.location-card address > span { color: var(--blue); font: 700 9px Consolas, monospace; letter-spacing: .2em; }
.location-card address strong { display: block; margin-top: 6px; }
.location-card address p { color: var(--muted); font-size: 12px; }
.location-card address dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.location-card dt { color: var(--blue); font: 700 8px Consolas, monospace; letter-spacing: .16em; }
.location-card dd { color: #fff; font-size: 11px; }

.contact {
  margin-bottom: 110px; padding: 70px;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px;
  border: 1px solid var(--line); border-top: 3px solid var(--blue);
  background: linear-gradient(135deg, rgba(8,170,240,.09), rgba(4,15,28,.86));
}
.contact-body > p { color: var(--muted); font-size: 14px; }
.contact-body > a {
  display: inline-flex; align-items: center; gap: 40px; margin-top: 28px; padding: 15px 20px;
  background: var(--blue); color: #00101e; font-size: 13px; font-weight: 800;
}
.contact-body > a span { font-size: 18px; }
.contact-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin-top: 38px; }
.contact-body dl div { padding-top: 12px; border-top: 1px solid var(--line); }
.contact-body dt { color: var(--blue); font: 700 9px Consolas, monospace; letter-spacing: .16em; }
.contact-body dd { margin-top: 5px; color: #dbe7f3; font-size: 12px; }

.site-footer {
  padding: 28px 0 45px; display: flex; justify-content: space-between; gap: 30px;
  border-top: 1px solid var(--line); color: #60768d; font-size: 11px;
}
.site-footer strong { color: #9aadc1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
