@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* ═══════════════════════════════════════════════════════════════
   RMK DESIGN SYSTEM — Industrial Tech palette
   Signal Red is an accent, never a background theme.
   Target surface balance: light 55–65% / carbon 30–40% / red 5–8%
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Core palette — every neutral sits on one cool axis (hue ≈ 205°).
     Lightness is unchanged from the original palette; only the hue and
     saturation were aligned so the greys read as one family. */
  --rmk-red:    #E31B23;   /* Signal Red — brand constant, not temperature-shifted */
  --carbon:     #111518;   /* primary dark surface */
  --graphite:   #232A2E;   /* secondary dark surface / dark cards */
  --steel:      #717B82;   /* secondary + technical text */
  --silver:     #DFE4E7;   /* borders, dividers, subtle surfaces */
  --off-white:  #F5F7F8;   /* deeper light band — headers, select sections */
  --paper:      #FFFFFF;   /* default page surface — sections read as one clean canvas */
  --pure-white: #FFFFFF;   /* clean content surfaces + cards */

  /* Derived steps — same axis, for contrast compliance */
  --steel-ink:   #565E65;  /* Steel darkened: body copy on light surfaces (AA) */
  --steel-light: #99A2A8;  /* Steel lightened: secondary text on carbon */
  --carbon-line: #31393F;  /* hairline borders on carbon */
  --red-hover:   #F03A41;
  --red-tint:    rgba(227, 27, 35, 0.09);  /* Signal Red at low alpha — hover wash */
  --card-shadow: 0 1px 3px rgba(16, 21, 24, 0.03);  /* resting lift for cards on white */

  /* ─── Legacy aliases ───────────────────────────────────────────
     The original stylesheet inverted its own names (--black was white).
     Mapping them onto the palette above repaints every existing rule
     and inline style="background: var(--dark)" from this one block. */
  --black:  var(--paper);        /* page + light section base surface */
  --dark:   var(--off-white);    /* tinted panels only — mobile submenu, spec cards.
                                    No section uses it: every band is white now. */
  --dark2:  var(--pure-white);   /* card surface, one step brighter than the base */
  --dark3:  var(--silver);       /* borders, dividers */
  --gray:   var(--steel);        /* tertiary + technical text */
  --gray2:  var(--steel-ink);    /* body text */
  --light:  var(--graphite);     /* strong body text */
  --white:  var(--carbon);       /* headings + carbon surfaces */
  --accent: var(--rmk-red);
  --accent2: var(--red-hover);
  --nav-h: 72px;
}

/* ═══ CARBON SURFACE ═══
   Re-scopes the legacy tokens so any existing component dropped into a
   dark section inverts correctly without rewriting its own rules. */
.surface-carbon {
  background: var(--carbon);
  color: var(--pure-white);
  --black:  var(--carbon);
  --dark:   #1A1F23;
  --dark2:  var(--graphite);      /* cards on carbon */
  --dark3:  var(--carbon-line);   /* hairlines on carbon */
  --gray:   #8A9399;              /* Steel lifted for legibility on graphite */
  --gray2:  var(--steel-light);
  --light:  var(--silver);
  --white:  var(--pure-white);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Pretendard', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--silver);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
/* Nav stays Pure White so it keeps its lift off the Off White page */
nav.scrolled {
  background: rgba(255,255,255,0.99);
  border-bottom-color: var(--silver);
  box-shadow: 0 1px 0 rgba(16,21,24,0.05);
}

.nav-logo {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-wordmark {
  font-family: 'Pretendard', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.nav-logo .co {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray2);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

/* Products dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.99);
  border: 1px solid var(--dark3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-6px);
  backdrop-filter: blur(12px);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--dark3);
  font-size: 0.75rem;
}
.dropdown-menu a:last-child { border-bottom: none; }
/* washed Signal Red rather than the grey --dark3 fill — reads as the brand
   colour without competing with the red text sitting on top of it */
.dropdown-menu a {
  transition: background 0.18s, color 0.18s;
}
.dropdown-menu a:hover {
  background: var(--red-tint);
  color: var(--accent);
}

/* Mobile nav toggle — Material Symbols "menu" / "close".
   background:none + border:none are load-bearing: without them the UA paints
   its default button face (grey fill, dark outline) around the icon. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.nav-toggle:hover { color: var(--accent); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}
/* the panel is an earlier sibling of the button, so the icon can swap on
   .open with no extra JS */
.nav-toggle .icon-close { display: none; }
.nav-links.open ~ .nav-toggle .icon-menu { display: none; }
.nav-links.open ~ .nav-toggle .icon-close { display: block; }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%),
    linear-gradient(to top,   rgba(0,0,0,0.6)  0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 80px;
  max-width: 900px;
}
/* Hero sits on dark imagery — it opts out of the light token scope */
.hero-eyebrow {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--rmk-red);
}
.hero-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(2.0rem, 8vw, 3.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: 32px;
}
.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-links a {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--pure-white);
  transition: all 0.25s;
}
.hero-links a:hover {
  background: var(--rmk-red);
  color: var(--pure-white);
  border-color: var(--rmk-red);
}

.video-control {
  position: absolute;
  bottom: 80px;
  right: 64px;
  z-index: 3;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}
.video-control:hover { background: rgba(255,255,255,0.22); }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 140px 64px 64px;
  background: var(--pure-white);
  border-bottom: 3px solid var(--accent);
}
.page-header-eyebrow {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
/* Optional standfirst under the h1 — used where a page needs a paragraph of
   context that would otherwise sit in a redundant intro section below. */
.page-header-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray2);
  max-width: 860px;
  margin-top: 24px;
}

/* ─── SECTION COMMON ─── */
section { padding: 80px 64px; }
.section-label {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.4;
}

/* ─── DIVIDER LINE ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 8px 0 40px;
}

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(16,21,24,0.07);
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.product-card:hover img { transform: scale(1.03); }
.product-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-top: 0;
}
.product-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray2);
  margin-bottom: 16px;
}
.product-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.product-card ul li {
  font-size: 0.875rem;
  color: var(--gray2);
  padding: 5px 0;
  border-bottom: 1px solid var(--dark3);
}
.product-card ul li::before { content: '— '; color: var(--accent); }

/* ─── ACCORDION ─── */
.accordion-item {
  border-bottom: 1px solid var(--dark3);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.accordion-header:hover { color: var(--accent); }
.accordion-header h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.accordion-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 0 32px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray2);
}
.accordion-item.open .accordion-body { max-height: 1000px; }

/* ─── TEAM GRID ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.team-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(16,21,24,0.07);
}
.team-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}
.team-card:hover img { transform: scale(1.03); }
.team-card-info {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--dark3);
}
.team-card-info h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--white);
}
.team-card-info p {
  font-size: 0.8125rem;
  color: var(--gray2);
  line-height: 1.5;
}

/* ─── HISTORY TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-year {
  margin-bottom: 32px;
}
.timeline-year-label {
  font-family: 'Pretendard', sans-serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
}
.timeline-year-label::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-event {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  padding-left: 8px;
}
.timeline-month {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 32px;
  padding-top: 2px;
}
.timeline-event p {
  font-size: 0.875rem;
  color: var(--gray2);
  line-height: 1.5;
}

/* ─── CERTS GRID ─── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cert-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(16,21,24,0.07);
}
.cert-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.cert-card p {
  font-size: 0.75rem;
  color: var(--gray2);
  text-align: center;
  line-height: 1.4;
}

/* ─── MANUFACTURING TABLE ─── */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.machine-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.machine-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(16,21,24,0.07);
}
.machine-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.machine-card-info {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--dark3);
}
.machine-card-info h4 {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.machine-card-info ul { list-style: none; }
.machine-card-info ul li {
  font-size: 0.875rem;
  color: var(--gray2);
  padding: 3px 0;
}
.machine-card-info ul li::before { content: '· '; color: var(--accent); }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-block {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-top: 3px solid var(--accent);
  padding: 48px;
  transition: box-shadow 0.25s;
}
.contact-block:hover {
  box-shadow: 0 6px 24px rgba(16,21,24,0.07);
}
.contact-block h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-block p {
  font-size: 0.875rem;
  color: var(--gray2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.contact-block a:hover { color: var(--accent); }
.contact-block strong { color: var(--white); font-weight: 600; }

/* ─── FOOTER ─── */
footer {
  background: var(--white);
  border-top: 3px solid var(--accent);
  padding: 40px 64px;
}

/* Brand + social */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--graphite);
  margin-bottom: 28px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-logo {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--pure-white);
}
.footer-tagline {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-label {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.footer-social-links {
  display: flex;
  gap: 8px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--carbon-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-light);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(227,27,35,0.10);
}
.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Locations: stacked vertically */
.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--graphite);
  margin-bottom: 20px;
}
.footer-location-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-location-block:last-child { /* no extra override needed */ }
.footer-location-label {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}
.footer-location-name {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--silver);
  margin-bottom: 3px;
  display: block;
}
.footer-location-addr {
  font-size: 0.8125rem;
  color: var(--steel-light);
  line-height: 1.5;
}

/* Copyright + links */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  footer { padding: 32px 24px; }
  .footer-top { flex-direction: column; gap: 16px; }
}

/* ─── PLANT ITEMS GRID ─── */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.plant-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.plant-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(16,21,24,0.07);
}
.plant-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.plant-card:hover img { transform: scale(1.03); }
.plant-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--dark2);
  border-top: 1px solid var(--dark3);
}
.plant-card-body h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--white);
}
.plant-card-body p {
  font-size: 0.84rem;
  color: var(--gray2);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}

/* ─── NEWSROOM BTN ─── */
.newsroom-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 11px 24px;
  transition: all 0.2s;
  margin-bottom: 48px;
  width: fit-content;
}
.newsroom-btn:hover {
  background: var(--accent);
  color: var(--pure-white);
}

/* ─── OVERVIEW ─── */
.overview-section {
  background: var(--black);
  padding: 80px 64px;
}
.overview-section p {
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light);
  margin-bottom: 20px;
}

/* ─── HISTORY PHOTOS ─── */
.history-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--dark3);
  margin-bottom: 48px;
}
.history-photos img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: brightness(0.75) grayscale(20%);
  transition: filter 0.3s;
}
.history-photos img:hover { filter: brightness(0.95) grayscale(0%); }

/* ─── RESPONSIVE ─── */
/* Nav collapses to the hamburger before the links would ever have to shrink
   font size or wrap onto a second row — see the 7-item fit check this
   replaced further down. */
@media (max-width: 1150px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.99);
    padding: 32px 24px;
    gap: 24px;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--dark3);
  }
  .nav-links.open > li { width: 100%; text-align: center; }
  .nav-links.open > li > a { justify-content: center; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: var(--off-white);
    border: none;
    padding: 0;
    min-width: 0;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown.open > a::after { transform: rotate(180deg); }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .nav-dropdown:hover > a::after { transform: none; }
  .dropdown-menu a {
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .hero-content { padding: 0 24px 60px; }
  .video-control { right: 24px; bottom: 60px; }
  section { padding: 60px 24px; }
  .page-header { padding: 120px 24px 48px; }
  .overview-section { padding: 60px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-block { padding: 32px 28px; }
  .history-photos { grid-template-columns: 1fr; }
  .history-photos img { height: 260px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-links { gap: 12px; }
}

@media (max-width: 600px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-grid { grid-template-columns: 1fr; }
  .contact-block { padding: 24px 20px; }
  section { padding: 48px 20px; }
  .page-header { padding: 110px 20px 40px; }
  .overview-section { padding: 48px 20px; }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .nav-logo-wordmark { font-size: 2.4rem; }
  .nav-logo img { width: 34px; height: 34px; }
  section { padding: 44px 16px; }
  .page-header { padding: 100px 16px 36px; }
  .overview-section { padding: 44px 16px; }
  .hero-content { padding: 0 16px 48px; }
  .hero-links a { padding: 10px 18px; font-size: 0.68rem; }
  .contact-block { padding: 20px 16px; }
  footer { padding: 28px 16px; }
}

/* ─── LANGUAGE TOGGLE ─── */
.lang-ko { display: none; }
body.ko .lang-ko { display: revert; }
body.ko .lang-en { display: none; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-lang-item {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 12px;
}
.lang-btn {
  background: none;
  border: 1px solid var(--dark3);
  color: var(--gray2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Pretendard', sans-serif;
}
.lang-btn:first-child { border-radius: 2px 0 0 2px; }
.lang-btn:last-child  { border-radius: 0 2px 2px 0; }
.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .nav-logo img { width: 38px; height: 38px; }
  .nav-logo-wordmark { font-size: 2.7rem; }
  .nav-lang-item {
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--dark3);
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .lang-btn { padding: 3px 7px; font-size: 0.68rem; }
}

/* ─── PRETENDARD — Korean typography (Toss Design System) ─── */

/* Body-level text in KO mode */
body.ko,
body.ko .lang-ko {
  font-family: 'Pretendard', sans-serif;
  letter-spacing: -0.01em;
}

/* Display / Page headings (h1, h2) — Toss Display: ls -0.02em, lh 1.4 */
body.ko h1.lang-ko,
body.ko h2.lang-ko,
body.ko .hero-title.lang-ko,
body.ko .section-title.lang-ko,
body.ko .news-preview-header h2.lang-ko {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Title level (h3) — Toss Title: ls -0.01em, lh 1.4 */
body.ko h3.lang-ko,
body.ko h3 .lang-ko,
body.ko .product-card h3.lang-ko,
body.ko .product-card h3 .lang-ko,
body.ko .plant-card-body h3.lang-ko,
body.ko .news-card h3.lang-ko,
body.ko .news-full-card h3.lang-ko {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-transform: none;
}

/* Body text — Toss Body: ls -0.01em, lh 1.6 */
body.ko p.lang-ko,
body.ko .accordion-body-inner.lang-ko,
body.ko .overview-section p.lang-ko,
body.ko .contact-block p.lang-ko {
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* Label / Caption — reduced positive spacing for Korean */
body.ko .section-label.lang-ko {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
body.ko .page-header-eyebrow.lang-ko {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
body.ko .hero-eyebrow.lang-ko {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Nav links */
body.ko .nav-links .lang-ko {
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Logo */
body.ko .nav-logo .lang-ko {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* CTA / buttons */
body.ko .newsroom-btn .lang-ko {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Home intro h2 */
body.ko .home-intro-text h2.lang-ko {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Stat labels */
body.ko .stat-block .label.lang-ko {
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ═══════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════ */

/* ─── Hero: always on dark video — keep text light ─── */
.hero-eyebrow { color: rgba(255,255,255,0.88); }
.hero-title { color: #ffffff; }
.hero-links a {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.hero-links a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.video-control {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* ─── Preview cards: text on dark gradient overlay ─── */
.preview-card h3 { color: #000000; }
.preview-card p   { color: rgba(12, 12, 12, 0.78); }
.preview-card a   { color: var(--accent); }

/* ─── Page header: light bg, dark text ─── */
.page-header { border-bottom: 1px solid var(--dark3); }

/* ─── Divider: visible on light bg ─── */
.divider { opacity: 0.5; }

/* ─── Image filters: lighter for light mode ─── */
.map-embed          { filter: grayscale(15%) brightness(1.0); }
.factory-photos img { filter: brightness(0.92); }
.history-photos img { filter: brightness(0.88) grayscale(10%); }
.machine-card img   { filter: brightness(0.95); }
.team-card img      { filter: brightness(0.97); }
.plant-card img     { filter: brightness(0.95); }
.product-card img   { filter: brightness(0.97); }

/* ─── Cert cards on light bg ─── */
.cert-card img { filter: brightness(1.0); }

/* Sections are separated by their 80px padding and their own headings, not by
   a rule. The hairline read as clutter once the surfaces were unified. */

/* ─── Toss Design System typography — base overrides ─── */
body                  { font-size: 1rem; line-height: 1.6; letter-spacing: -0.01em; }
p                     { font-size: 1rem; line-height: 1.6; letter-spacing: -0.01em; }
.overview-section p   { font-size: 1rem; }
.section-label        { font-size: 0.75rem; }
.product-card p       { font-size: 0.875rem; }
.product-card ul li   { font-size: 0.875rem; }
.accordion-body-inner { font-size: 0.875rem; }
.timeline-event p     { font-size: 0.875rem; }
.team-card-info p     { font-size: 0.8125rem; }
.contact-block p      { font-size: 0.875rem; }
.machine-card-info ul li { font-size: 0.875rem; }
.cert-card p          { font-size: 0.75rem; }
.plant-card-body p    { font-size: 0.875rem; }
.footer-copy          { font-size: 0.75rem; }
.nav-links a          { font-size: 0.8125rem; }
.dropdown-menu a      { font-size: 0.8125rem; }

/* ═══════════════════════════════════════════════
   NEWS
   ═══════════════════════════════════════════════ */

/* ─── News preview (index.html) ─── */
.news-preview {
  background: var(--black);
  padding: 80px 64px;
}
.news-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark3);
  margin-bottom: 48px;
}
.news-preview-header h2 {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.news-all-link {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s, opacity 0.2s;
}
.news-all-link:hover { gap: 16px; opacity: 0.75; }

/* ─── News grid ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── News card ─── */
.news-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-top: 3px solid var(--dark3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-top-color 0.25s, box-shadow 0.25s;
}
.news-card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 6px 24px rgba(16,21,24,0.07);
}
.news-card-img-wrap {
  height: 196px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--silver);
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 0.4s;
}
.news-card:hover .news-card-img { transform: scale(1.03); }
.news-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.news-tag {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.news-date {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.news-card h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card p {
  font-size: 0.875rem;
  color: var(--gray2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.news-cta {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--accent);
  width: fit-content;
  transition: gap 0.2s;
}
.news-card:hover .news-cta { gap: 14px; }

/* ─── Full news page (news.html) ─── */
.news-list-section {
  background: var(--black);
  padding: 80px 64px;
}
/* Two-column card grid. This only works now that the full article lives on
   its own page — the card carries a headline and a one-sentence lede, so the
   cells stay short instead of the 540px monsters a full-text card produced. */
.news-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.news-full-card {
  scroll-margin-top: calc(var(--nav-h) + 32px);
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-top: 3px solid var(--dark3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-top-color 0.25s, box-shadow 0.25s;
}
.news-full-card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 6px 24px rgba(16,21,24,0.07);
}
.news-full-card-img-wrap {
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--silver);
}
.news-full-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 0.4s;
}
.news-full-card:hover .news-full-card-img { transform: scale(1.03); }

.news-full-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 32px 30px;
  min-width: 0;
}
.news-full-card-head { margin-bottom: 14px; }
/* fills the leftover height so the CTA can be pinned to the bottom edge —
   every card in the row ends on the same line however the headline wraps */
.news-full-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-full-card-text .news-cta { margin-top: auto; }

/* scoped to this page — index.html's .news-card meta keeps its own spacing */
.news-full-card .news-meta { gap: 10px; margin-bottom: 10px; }
.news-full-card .news-date::before {
  content: '·';
  margin-right: 10px;
  color: var(--gray);
}
.news-full-card h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.4;
  transition: color 0.22s;
}
.news-full-card:hover h3 { color: var(--accent); }
.news-full-card p {
  font-size: 0.875rem;
  color: var(--gray2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.news-full-card:hover .news-cta { gap: 14px; }

/* ═══ ARTICLE DETAIL PAGE (news-*.html) ═══
   One centred column shared by the headline, the photo and the copy, so the
   whole article sits on the same two edges. The gutter is whichever is
   larger: the 1 : 9 : 1 side rail (1/11 = 9.0909%), or however much is needed
   to centre a 1080px column — the photo's width. Below ~1190px viewport the
   rail wins and the column simply narrows with it. */
.article-header,
.article-hero,
.article-body {
  padding-left: max(9.0909%, calc((100% - 1080px) / 2));
  padding-right: max(9.0909%, calc((100% - 1080px) / 2));
}

.article-header {
  padding-top: 132px;
  padding-bottom: 0;
  background: var(--pure-white);
}
.article-back {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--steel-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}
.article-back:hover { color: var(--accent); gap: 14px; }
.article-header .news-meta { gap: 10px; margin-bottom: 14px; }
.article-header .news-date::before {
  content: '·';
  margin-right: 10px;
  color: var(--gray);
}
.article-header h1 {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
/* Sits inside the gutter instead of bleeding to the viewport edge, and holds
   a fixed 1080×600 news-photo ratio rather than a viewport-scaled height.
   The top padding is the gap the headline needed. */
.article-hero {
  background: var(--pure-white);
  padding-top: 44px;
}
.article-hero img {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1080 / 600;
  height: auto;
  margin-inline: auto;      /* centred in the column once past 1080px */
  object-fit: cover;
  background: var(--silver);
  filter: brightness(0.95);
}
.article-body {
  background: var(--pure-white);
  padding-top: 48px;
  padding-bottom: 72px;
}
/* No ch cap on the copy — it runs the full 1080px column so the text block
   and the photo above it share one footprint. Workable here only because the
   articles are 2–3 short paragraphs; a long read would need a tighter measure. */
.article-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.article-body p:not(.article-lede) {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--steel-ink);
  margin-bottom: 20px;
}
.article-foot {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--dark3);
}
/* standalone here, so it needs its own hover — the listing rows get theirs
   from .news-full-card:hover */
.article-foot .news-cta:hover { gap: 14px; opacity: 0.75; }

/* ─── News responsive ─── */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-full-card-img-wrap { height: 220px; }
  .news-full-card-body { padding: 22px 26px 26px; }
  .news-full-card h3 { font-size: 1.25rem; }
}
@media (max-width: 900px) {
  /* 9.0909% of a phone viewport is only ~34px and squeezes the measure —
     drop back to the fixed page gutter the other sections use */
  .article-header,
  .article-hero,
  .article-body { padding-left: 24px; padding-right: 24px; }
  .article-header { padding-top: 108px; }
  .article-hero { padding-top: 32px; }
  .article-body { padding-top: 36px; padding-bottom: 56px; }
  .news-preview { padding: 60px 24px; }
  .news-preview-header { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-list-section { padding: 60px 24px; }
  .news-full-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-full-card-img-wrap { height: 200px; }
}
@media (max-width: 480px) {
  .news-preview { padding: 44px 16px; }
  .news-list-section { padding: 44px 16px; }
  .news-full-card-body { padding: 22px 20px 24px; }
  .news-full-card h3 { font-size: 1.125rem; }
  .article-header,
  .article-hero,
  .article-body { padding-left: 16px; padding-right: 16px; }
  .article-header { padding-top: 100px; }
  .article-lede { font-size: 1rem; padding-left: 14px; }
}

/* ═══ CARD LIFT ═══
   Every surface is pure white now, so a card can no longer be told apart from
   the section behind it by tone alone. A hairline shadow at rest restores that
   edge. Grouped here, after every card definition, so it also reaches the
   classes declared in each page's own <style> block — none of them set a
   resting shadow, and their :hover rules still win with a deeper lift. */
.product-card,
.team-card,
.cert-card,
.machine-card,
.contact-block,
.plant-card,
.news-card,
.news-full-card,
.app-block,
.app-cta,
.spec-card,
.feature-card,
.preview-card,
.delivers-card,
.proof-card,
.cap-stat,
.cap-block {
  box-shadow: var(--card-shadow);
}

/* ─── Nav fit — full-size nav above the 1150px hamburger collapse ─── */
@media (min-width: 1151px) and (max-width: 1400px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
}
