/* Solenarion — shared styles for index.html and company.html.
   Each page opens with a full-width orange band that carries the header (like a large company's
   homepage key visual), then white content sections, then a navy footer with the business details
   Korean company sites list at the bottom of every page. */
:root {
  --ink: #0B1630;
  --ink-2: #39435E;
  --muted: #5C6580;
  --rule: #E3E6EE;
  --rule-strong: #C9D0DE;
  --paper: #FFFFFF;
  --wash: #F5F6F9;
  --band: #EC5F24;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 88px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
[hidden] { display: none !important; }
html[data-lang="ko"] [lang="en"],
html[data-lang="en"] [lang="ko"] { display: none !important; }

a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.md { margin-inline: -0.12em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.site-footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 4px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header: sits on top of the orange band */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; min-height: var(--header-h); }
.header-row .brand { justify-self: start; }
.header-row .lang-switch { justify-self: end; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; padding: 6px 0; }
.wordmark { display: block; height: 14px; width: auto; fill: currentColor; }
.nav { display: flex; gap: 48px; }
.nav a { position: relative; color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none; padding: 8px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform 0.18s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(11, 22, 48, 0.3); border-radius: 999px; }
.lang-switch button {
  font: 500 0.8125rem/1 var(--font-body); letter-spacing: 0.02em;
  background: none; border: 0; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  :root { --header-h: 112px; }
  .header-row { grid-template-columns: 1fr auto; gap: 0 16px; align-content: center; }
  .brand { padding: 10px 0; }
  .wordmark { height: 12px; }
  .nav { order: 3; grid-column: 1 / -1; gap: 28px; }
  .nav a { font-size: 0.9375rem; padding: 4px 0 8px; }
}

/* Orange band */
.band { position: relative; overflow: hidden; isolation: isolate; color: var(--ink); background: #EE6C27; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* Home: key visual — large headline on the orange band, no picture */
.hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(36px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 500; line-height: 1.17; letter-spacing: -0.03em; }
.hero .h1-b { color: #fff; }
html[data-lang="en"] .hero h1 { letter-spacing: -0.025em; }
.lead { margin-top: clamp(20px, 2.4vw, 28px); max-width: 36em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.75; color: #18223D; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 6px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #FFF2EA; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: rgba(255, 255, 255, 0.2); }

/* Company summary strip at the foot of the key visual */
.facts-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  margin: clamp(64px, 9vw, 120px) 0 0; padding: 6px 0;
  background: #fff; border-radius: 10px;
}
.facts-strip > div { padding: 18px clamp(20px, 2.6vw, 36px); }
.facts-strip > div + div { border-left: 1px solid var(--rule); }
.facts-strip dt { font-size: 0.875rem; color: var(--muted); }
.facts-strip dd { margin: 2px 0 0; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 500; }
@media (max-width: 720px) {
  .facts-strip { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 4px; }
  .facts-strip > div { padding: 16px 20px; }
  .facts-strip > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }

/* Home: business area, text over a wide real layout screen */
.biz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.biz-head h3 { margin-top: clamp(20px, 2.6vw, 28px); font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.biz-head p { margin-top: 10px; max-width: 32em; font-size: 1.0625rem; color: var(--ink-2); }
.more {
  display: inline-block; font-weight: 500; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1.5px solid var(--ink);
}
.more:hover { color: #B8400F; border-color: #B8400F; }
.shot { margin: clamp(32px, 4vw, 48px) 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; background: #001023; }
.shot figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

/* Sub page */
.page-head { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(44px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; }
.sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(16px, 4vw, 64px); }
.sub + .sub { margin-top: clamp(56px, 7vw, 96px); }
.sub h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.4; padding-top: 16px; letter-spacing: -0.01em; }
@media (max-width: 720px) { .sub { grid-template-columns: minmax(0, 1fr); } .sub h2 { padding-top: 0; } }

.facts, .history { margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.facts > div, .history li { display: grid; grid-template-columns: minmax(7em, 200px) minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.facts a:hover { border-color: var(--ink); }
.history { list-style: none; }
.history time { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .facts > div, .history li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Footer */
.site-footer { background: var(--ink); color: #A9B2C7; padding-block: 48px 44px; font-size: 0.875rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer .wordmark { height: 12px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { color: #D5DBE8; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: #fff; }
.footer-info { margin-top: 24px; color: #C3CAD9; line-height: 1.9; }
.footer-info > span + span::before {
  content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; vertical-align: -1px;
  background: rgba(255, 255, 255, 0.28);
}
.copy { margin-top: 6px; color: #8F99B0; }
