/* ============================================================
   DREAM FURNACE — Design System
   Palette  : coal black / iron / molten gold-vermilion / bone
   Type     : Noto Serif KR (display) · Pretendard (body) · IBM Plex Mono (labels)
   Signature: molten seam — 쇳물 이음선 (glowing pour lines between sections)
   ============================================================ */

:root {
  --coal:   #0B0907;
  --iron:   #141009;
  --panel:  #191309;
  --ash:    #2A2114;
  --line:   #33281A;
  --bone:   #F3ECDF;
  --smoke:  #A99C8B;
  --faint:  #6E6355;
  --gold:   #EFA63B;
  --ember:  #E4551F;
  --molten: linear-gradient(92deg, #F6C15C 0%, #EFA63B 30%, #E86A26 68%, #D8431A 100%);
  --molten-v: linear-gradient(180deg, #F6C15C 0%, #E86A26 60%, #D8431A 100%);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--coal);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.no-break { white-space: nowrap; }
::selection { background: rgba(232, 106, 38, .35); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- molten seam (signature) ---------- */
.seam {
  height: 1px; border: 0; position: relative; overflow: visible;
  background: linear-gradient(90deg, transparent, rgba(239,166,59,.55) 18%, rgba(216,67,26,.75) 50%, rgba(239,166,59,.55) 82%, transparent);
}
.seam::after {
  content: ""; position: absolute; inset: -6px 0;
  background: inherit; filter: blur(9px); opacity: .5;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--molten);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 9, 7, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 40, 26, .6);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .brand-flame {
  width: auto; height: 29px; object-fit: contain; flex: none;
}
.brand .brand-wordmark { width: 196px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px; color: var(--smoke); font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--bone); }
.lang-switch {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--smoke) !important;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold) !important; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--bone); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 190px 0 120px;
  background:
    radial-gradient(1100px 520px at 50% 118%, rgba(216, 67, 26, .34), transparent 62%),
    radial-gradient(700px 340px at 50% 112%, rgba(246, 193, 92, .20), transparent 60%),
    var(--coal);
}
.furnace-ghost-root {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.furnace-ghost-root > .ghost-cursor,
.furnace-ghost-root > .ghost-cursor > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero > :not(.furnace-ghost-root) { z-index: 1; }
.hero::before { /* crucible pour — thin molten line falling into the headline */
  content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 118px;
  transform: translateX(-50%);
  background: var(--molten-v);
  box-shadow: 0 0 14px rgba(232, 106, 38, .8);
}
.hero-inner { text-align: center; position: relative; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::before { display: none; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 26px auto 0;
  max-width: 900px;
}
.hero h1 .molten-text {
  background: var(--molten);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--smoke); max-width: 640px; margin: 28px auto 0;
  font-size: 18px; word-break: keep-all; overflow-wrap: break-word;
}
.hero-cta { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-molten {
  background: var(--molten); color: #1A0D04;
  box-shadow: 0 6px 26px rgba(216, 67, 26, .35);
}
.btn-molten:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(216, 67, 26, .5); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--bone);
}
.btn-ghost:hover { border-color: var(--gold); }

/* embers */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i {
  position: absolute; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #F6C15C, #D8431A);
  opacity: 0;
  animation: rise 9s linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  8%   { opacity: .85; }
  60%  { opacity: .4; }
  100% { transform: translateY(-540px) scale(.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .embers i { animation: none; display: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- sections ---------- */
section { padding: 104px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35;
  margin-top: 18px; letter-spacing: -0.02em;
}
.section-head p { color: var(--smoke); margin-top: 14px; }

/* stats strip */
.stats {
  padding: 0; margin-top: -34px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--iron);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 34px 28px; text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-family: var(--serif); font-size: 40px; font-weight: 700;
  background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.2;
}
.stat span { font-size: 14px; color: var(--smoke); display: block; margin-top: 6px; }

/* track record */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .25s;
  position: relative; overflow: hidden;
}
.case::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--molten); opacity: 0; transition: opacity .25s;
}
.case:hover { border-color: var(--ash); transform: translateY(-4px); }
.case:hover::before { opacity: 1; }
.case-sector {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  color: var(--gold); text-transform: uppercase;
}
.case h3 { font-size: 21px; font-weight: 700; }
.case p { color: var(--smoke); font-size: 15.5px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; color: var(--smoke);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

/* products */
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.product-card {
  grid-column: span 2;
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 3; }
.product-card:hover {
  border-color: rgba(239,166,59,.5); transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(216, 67, 26, .12);
}
.product-status {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(239,166,59,.45); color: var(--gold);
}
.product-status.shipped { background: var(--molten); color: #1A0D04; border-color: transparent; font-weight: 600; }
.product-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.product-card .p-type { font-size: 14px; color: var(--gold); font-weight: 600; margin-top: -8px; }
.product-card p { color: var(--smoke); font-size: 15.5px; flex: 1; }
.p-more {
  font-size: 14.5px; font-weight: 600; color: var(--gold);
  display: inline-flex; gap: 6px; align-items: center;
}
.p-more::after { content: "→"; transition: transform .2s; }
.product-card:hover .p-more::after { transform: translateX(4px); }

/* technology */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tech {
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px;
}
.tech .t-num {
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .2em;
}
.tech h3 { font-size: 18.5px; font-weight: 700; margin: 12px 0 10px; }
.tech p { color: var(--smoke); font-size: 15px; line-height: 1.7; }

/* R&D */
.rnd { background: var(--iron); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rnd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.rnd-items { display: flex; flex-direction: column; gap: 0; }
.rnd-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; gap: 22px; }
.rnd-item:last-child { border-bottom: 0; }
.rnd-item .r-mark {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(232,106,38,.12); border: 1px solid rgba(239,166,59,.35);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--gold);
}
.rnd-item h4 { font-size: 17.5px; font-weight: 700; }
.rnd-item p { color: var(--smoke); font-size: 15px; margin-top: 4px; }

/* history */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, #F6C15C, #D8431A 70%, transparent);
}
.tl-item { position: relative; padding: 0 0 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--molten);
  box-shadow: 0 0 12px rgba(232,106,38,.7);
}
.tl-date { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.tl-item h4 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.tl-item p { color: var(--smoke); font-size: 15px; margin-top: 4px; }

/* about table */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 16px 6px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; font-size: 15.5px;
}
.info-table th {
  width: 128px; color: var(--faint); font-weight: 600;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; padding-top: 19px;
}
.info-table td { color: var(--bone); }

/* contact */
.contact {
  text-align: center;
  background:
    radial-gradient(800px 380px at 50% 130%, rgba(216, 67, 26, .28), transparent 65%),
    var(--coal);
}
.contact h2 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.35;
}
.contact-channels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  max-width: 760px; margin: 38px auto 0; text-align: left;
}
.contact-channel {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(20, 16, 9, .72); transition: border-color .2s, transform .2s;
}
.contact-channel:hover { border-color: var(--ash); transform: translateY(-2px); }
.contact-channel.primary {
  border-color: rgba(239, 166, 59, .55);
  background: linear-gradient(120deg, rgba(239,166,59,.12), rgba(216,67,26,.06));
}
.channel-label {
  display: block; margin-bottom: 7px; font-family: var(--mono);
  color: var(--faint); font-size: 10.5px; letter-spacing: .16em;
}
.contact-channel strong {
  font-family: var(--mono); color: var(--smoke); font-size: clamp(14px, 2vw, 18px); font-weight: 500;
}
.contact-channel.primary .channel-label, .contact-channel.primary strong { color: var(--gold); }
.contact-meta { margin-top: 34px; color: var(--faint); font-size: 14.5px; line-height: 2; }

.furnace-outro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.furnace-outro .contact {
  position: relative;
  z-index: 1;
  background: radial-gradient(800px 380px at 50% 100%, rgba(216, 67, 26, .22), transparent 65%);
}
.furnace-outro footer { z-index: 1; }

/* footer */
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 42px 0 54px;
  color: var(--faint); font-size: 13.5px;
}
footer .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .footer-brand img { width: 126px; height: auto; margin-bottom: 12px; }
.furnace-splash-root {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .72;
  background: radial-gradient(80% 120% at 50% 110%, rgba(154, 30, 6, .26), transparent 72%);
}
.furnace-splash-root > div,
.furnace-splash-root canvas {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* ---------- product detail page ---------- */
.p-hero {
  padding: 168px 0 84px;
  background:
    radial-gradient(900px 420px at 18% 120%, rgba(216, 67, 26, .26), transparent 62%),
    var(--coal);
  border-bottom: 1px solid var(--line);
}
.p-hero .back {
  font-family: var(--mono); font-size: 13px; color: var(--smoke); letter-spacing: .08em;
}
.p-hero .back:hover { color: var(--gold); }
.p-hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 5.5vw, 58px); margin-top: 22px; letter-spacing: -0.02em;
}
.p-hero .p-tagline { font-size: 20px; color: var(--gold); margin-top: 10px; font-weight: 600; }
.p-hero .p-desc { color: var(--smoke); max-width: 680px; margin-top: 20px; font-size: 17px; }
.p-hero .product-status { margin-top: 26px; }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px;
}
.feature h3 { font-size: 17.5px; font-weight: 700; color: var(--bone); }
.feature h3::before {
  content: "◆"; color: var(--ember); font-size: 11px; margin-right: 10px; vertical-align: 2px;
}
.feature p { color: var(--smoke); font-size: 15px; margin-top: 8px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot figure {
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 14px 20px; font-size: 14px; color: var(--smoke);
  border-top: 1px solid var(--line);
  font-family: var(--mono); letter-spacing: .02em;
}
.shot.wide { grid-column: 1 / -1; }

.p-cta {
  text-align: center; background: var(--iron);
  border-top: 1px solid var(--line);
}
.p-cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; }
.p-cta p { color: var(--smoke); margin-top: 12px; }
.p-cta .btn { margin-top: 30px; }

/* reveal on scroll — hidden only when JS is active */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .cases, .tech-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card, .product-card:nth-child(4), .product-card:nth-child(5) { grid-column: span 1; }
  .rnd-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .hero { padding: 150px 0 96px; }
  .cases, .tech-grid, .products-grid, .features-grid, .shots { grid-template-columns: 1fr; }
  .nav {
    position: fixed; top: 72px; right: 0; left: 0;
    background: rgba(11,9,7,.97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 28px 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; width: 100%; }
  .lang-switch { margin-top: 10px; }
  .menu-btn { display: block; }
  .brand { gap: 8px; }
  .brand .brand-flame { height: 26px; }
  .brand .brand-wordmark { width: 152px; }
  .contact-channels { grid-template-columns: 1fr; }
  footer .footer-brand img { width: 112px; }
}
