/* ==========================================================================
   UNT KOREA — main stylesheet
   Written by Claude (design owner) from design/DESIGN_SPEC.md.
   Structure: tokens → base → layout → components → pages → board/forms →
   admin → footer → motion → responsive. Class names match views/** as-is.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #D4521F;          /* logo colour — decoration and 24px+ text */
  --brand-600: #C44A1B;      /* buttons/links with white text (AA 4.7:1) */
  --brand-700: #A93F17;
  --brand-50: #FCEEE8;
  --brand-light: #FFB08F;    /* accents on dark backgrounds */

  --ink: #1D1D1F;
  --ink-2: #424245;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --line-soft: #E8E8ED;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --bg-dark: #111214;
  --on-dark: #F5F5F7;
  --on-dark-muted: #A1A1A6;

  --pending-bg: #FFF4E5;
  --pending-fg: #8A5300;
  --done-bg: #E6F4EA;
  --done-fg: #1E7E34;
  --danger: #D93025;
  --danger-bg: #FDECEA;
  --focus: #C44A1B;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 980px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, .10);
  --shadow-pop: 0 20px 48px rgba(0, 0, 0, .14);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: 120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 84px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p + p { margin-top: 16px; }

h1 { font-size: 44px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 18px; line-height: 1.4; font-weight: 600; }

a { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: wait; opacity: .65; }
a, button, input, select, textarea { touch-action: manipulation; }
a, button { transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--brand-50); color: var(--ink); }
[hidden] { display: none !important; }

.icon { width: 24px; height: 24px; flex: none; }

/* 3. Layout & utilities ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: var(--on-dark); }
.bg-dark p { color: var(--on-dark-muted); }
.bg-dark .eyebrow { color: var(--brand-light); }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.display { font-size: 56px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.centered { text-align: center; }
.help-text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.section-heading { margin-bottom: 48px; }
.section-heading .lead { margin-top: 16px; }
.section-heading.centered { max-width: 760px; margin-inline: auto; margin-bottom: 56px; }
.subsection-heading { margin: 96px 0 32px; }
.subsection-heading h2 { font-size: 28px; }
.heading-with-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.split-layout h2 { margin-bottom: 24px; }
.split-layout p { color: var(--ink-2); }
.split-layout .text-link, .split-layout .chips { margin-top: 24px; }

.narrow-copy { max-width: 760px; }
.narrow-copy h2 { margin-bottom: 24px; }

/* 4. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 18px; }

.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--muted); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-50); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px;
  color: var(--brand-600); font-size: 16px; font-weight: 600;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }
.light-link { color: var(--brand-light); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.header-inner { display: flex; align-items: center; gap: 36px; height: 100%; }

.logo { position: relative; display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.logo img { display: block; width: auto; height: 32px; }
.logo .logo-white { display: none; }

.desktop-navigation { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.gnb { display: flex; gap: 48px; height: 100%; }
.gnb > li { display: flex; }
.gnb-link {
  position: relative; display: flex; align-items: center;
  font-size: 17px; font-weight: 600; white-space: nowrap;
}
.gnb-link:hover { color: var(--brand-600); }
.gnb-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-email { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; white-space: nowrap; }
.header-email .icon { width: 18px; height: 18px; }
.header-email:hover { color: var(--brand-600); }
.header-actions .btn { min-height: 42px; padding: 10px 18px; font-size: 15px; }

/* Mega menu: every section's sub-pages at once (CoreTech pattern). */
.mega-menu {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 1px);
  background: #fff; color: var(--ink);
  border-top: 1px solid var(--line-soft);
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.desktop-navigation:hover .mega-menu,
.desktop-navigation:focus-within .mega-menu,
.desktop-navigation.menu-open .mega-menu { opacity: 1; visibility: visible; transform: none; }
.desktop-navigation.menu-dismissed .mega-menu { opacity: 0; visibility: hidden; transform: translateY(-8px); }

.mega-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 32px 36px; }
.mega-title { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.mega-title:hover { color: var(--brand-600); }
.mega-column li a { display: flex; align-items: center; min-height: 38px; font-size: 14px; color: var(--muted); }
.mega-column li a:hover, .mega-column li a[aria-current] { color: var(--brand-600); }

/* Home: transparent header over the hero until scrolled or the menu opens. */
.header-home:not(.scrolled) {
  background: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, .18);
}
.header-home:not(.scrolled) .logo-default { display: none; }
.header-home:not(.scrolled) .logo-white { display: block; }
.header-home:not(.scrolled) .gnb-link:hover,
.header-home:not(.scrolled) .header-email:hover { color: var(--brand-light); }
.header-home:not(.scrolled):has(.desktop-navigation:hover),
.header-home:not(.scrolled):has(.desktop-navigation:focus-within) { background: rgba(255, 255, 255, .97); color: var(--ink); }
.header-home:not(.scrolled):has(.desktop-navigation:hover) .logo-default,
.header-home:not(.scrolled):has(.desktop-navigation:focus-within) .logo-default { display: block; }
.header-home:not(.scrolled):has(.desktop-navigation:hover) .logo-white,
.header-home:not(.scrolled):has(.desktop-navigation:focus-within) .logo-white { display: none; }

.admin-heading { margin-left: auto; font-size: 20px; font-weight: 600; }
.header-logout { margin-left: 16px; }

.menu-toggle, .mobile-drawer, .drawer-backdrop { display: none; }

/* 6. Quick menu / mobile action bar --------------------------------------- */
.quick-menu {
  position: fixed; right: 24px; top: 50%; z-index: 80;
  width: 88px; transform: translateY(-50%);
  overflow: hidden; text-align: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.quick-menu > a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  height: 76px; border-top: 1px solid var(--line-soft); font-size: 11px;
}
.quick-menu > a:hover { background: var(--bg-alt); }
.quick-menu > a:first-of-type { border-top: 0; }
.quick-menu .quick-primary { color: var(--brand-600); font-weight: 700; }
.js .back-to-top:not(.visible) { display: none; }

.mobile-actions { display: none; }

/* 7. Sub-page banner & local navigation ------------------------------------ */
.page-banner {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 320px; overflow: hidden;
  color: #fff; text-align: center;
}
.banner-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(17, 18, 20, .55); }
/* The company banner reuses the signage photo: show its lower part so the sign never sits behind the title. */
.banner-company .banner-image { object-position: 50% 88%; }
.banner-content .eyebrow { color: rgba(255, 255, 255, .78); }
.banner-content h1 { color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.lnb {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.lnb-inner { display: flex; justify-content: center; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.lnb-inner::-webkit-scrollbar { display: none; }
.lnb a {
  flex: none; display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.lnb a:hover { color: var(--ink); background: var(--bg-alt); }
.lnb a.active { background: var(--ink); color: #fff; font-weight: 600; }

/* 8. Cards, badges, chips -------------------------------------------------- */
.card { min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-alt); }
.bg-alt .card { background: #fff; }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-soft); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
/* Products without a real photo get a neutral mesh pattern + name instead of a stock/AI image. */
.image-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; text-align: center;
  background-color: var(--bg-alt);
  background-image:
    repeating-linear-gradient(0deg, rgba(29, 29, 31, .07) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(29, 29, 31, .07) 0 1px, transparent 1px 10px);
  color: var(--ink-2); font-size: 22px; font-weight: 700; letter-spacing: .02em;
}
.gallery-main .image-placeholder { font-size: 36px; }
.card-body { padding: 32px; }
.card-body h3 + p { margin-top: 12px; }
.card-body p { color: var(--muted); }
.card-body .text-link { margin-top: 16px; }
.card-body .eyebrow { margin-bottom: 8px; }
.padded-card { padding: 32px; }
.padded-card h3 { margin: 16px 0 10px; }
.padded-card p { color: var(--muted); font-size: 16px; }
.card-index { display: inline-block; font-size: 28px; font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -.02em; }

.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { padding: 20px 24px; }
.photo-card h3 { font-size: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink-2);
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge.pending { background: var(--pending-bg); color: var(--pending-fg); }
.badge.answered { background: var(--done-bg); color: var(--done-fg); }
.brand-badge { background: var(--brand-50); color: var(--brand-700); }
.new-badge {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-size: 10px; font-weight: 700;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.bg-alt .chips span { background: #fff; }
.chips-large span { padding: 12px 22px; font-size: 17px; font-weight: 600; }

.check-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
.check-list li .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--brand-600); }
.check-list.compact li { padding-block: 6px; border: 0; font-size: 16px; }

.info-panel { margin-top: 48px; padding: 32px; border-radius: var(--r-lg); background: var(--bg-alt); }
.info-panel h3 { margin-bottom: 8px; }
.info-panel p { color: var(--ink-2); }
.info-panel .button-row { margin-top: 20px; }

.definition-list { display: grid; grid-template-columns: 180px 1fr; border-top: 2px solid var(--ink); }
.definition-list dt, .definition-list dd { padding: 18px 8px; border-bottom: 1px solid var(--line-soft); }
.definition-list dt { font-weight: 600; color: var(--muted); }

.contact-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 16px; font-size: 15px; }
.contact-facts dt { color: var(--muted); }
.contact-facts a:hover { color: var(--brand-600); }

.brand-quote { margin-top: 40px; padding: 8px 0 8px 28px; border-left: 4px solid var(--brand); }
.brand-quote p { font-size: 20px; line-height: 1.6; font-weight: 500; color: var(--ink); }
.brand-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--muted); }

.step-number { display: block; font-size: 15px; font-weight: 700; color: var(--brand-600); letter-spacing: .04em; }

/* 9. Home ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: max(640px, min(100svh, 860px));
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 96px) 0 148px;
  background: var(--bg-dark); color: #fff;
}
/* The signage photo sits in the right part so the "UNT KOREA" sign never runs under the headline. */
.hero-image {
  position: absolute; inset: 0 0 0 auto; z-index: -2;
  width: 56%; height: 100%;
  object-fit: cover; object-position: 56% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 18, 20, .6) 0%, rgba(17, 18, 20, 0) 180px),
    linear-gradient(90deg, rgba(17, 18, 20, 0) 60%, rgba(17, 18, 20, .2) 100%);
}
.hero .eyebrow { color: var(--brand-light); }
.hero h1 { max-width: 900px; font-size: 56px; line-height: 1.15; letter-spacing: -.025em; }
.hero .lead { max-width: 730px; margin-top: 28px; color: rgba(255, 255, 255, .85); }
.hero .button-row { margin-top: 40px; }

.quick-strip-wrap { position: relative; z-index: 1; margin-top: -56px; }
.quick-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 32px 8px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.quick-strip > div { padding: 0 32px; }
.quick-strip > div + div { border-left: 1px solid var(--line-soft); }
.quick-strip > div > .icon { height: 28px; margin-bottom: 4px; color: var(--brand-600); }
.quick-strip h2 { margin: 8px 0; font-size: 22px; line-height: 1.4; }
.quick-strip p { font-size: 15px; color: var(--muted); }
.quick-strip p a:hover { color: var(--brand-600); }
.quick-strip .email-address { font-size: 17px; }
.email-address { font-weight: 600; overflow-wrap: anywhere; }

.company-stats { display: grid; gap: 16px; }
.stat-card { display: block; padding: 24px 32px; border-radius: var(--r-lg); background: var(--bg-alt); }
.stat-card strong { display: block; font-size: 36px; line-height: 1.25; letter-spacing: -.025em; }
.stat-card span { display: block; margin-top: 6px; color: var(--muted); }
.stat-card small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.business-card .card-image { aspect-ratio: 16 / 9; }
.business-card:hover .card-image img { transform: scale(1.03); }

.products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.product-card { display: block; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card:hover img { transform: scale(1.04); }
.product-card .card-body { padding: 24px; }
.product-card h3 { font-size: 20px; }
.product-card p { font-size: 14px; }

.strengths-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-bottom: 40px; }
.strength-item .icon { width: 40px; height: 40px; margin-bottom: 24px; color: var(--brand-light); }
.strength-item h3 { margin-bottom: 8px; font-size: 32px; letter-spacing: -.02em; }
.strength-item p { font-size: 18px; }
.strength-item p.strength-desc {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px; line-height: 1.65;
}

.process-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.process-timeline > li { position: relative; }
.process-timeline img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: 14px; }
.process-timeline h3 { margin-top: 4px; font-size: 17px; line-height: 1.4; }
.process-timeline > li:not(:last-child)::after {
  content: '›'; position: absolute; top: calc(50% - 40px); right: -18px;
  font-size: 24px; color: var(--line);
}

.brands-section { padding-block: 64px; text-align: center; }
.brand-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.brand-chips span { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); }

.cta-band { padding-block: 96px; background: var(--brand-600); color: #fff; text-align: center; }
.cta-band .lead { margin-top: 16px; color: rgba(255, 255, 255, .86); }
.cta-band .button-row { justify-content: center; margin-top: 32px; }

.office-card { padding: 32px; }
.office-card > .icon { color: var(--brand-600); margin-bottom: 12px; }
.office-card p { margin-top: 8px; color: var(--ink-2); }
.office-card .text-link { margin-top: 16px; }

/* 10. Company pages -------------------------------------------------------- */
.strength-card { position: relative; padding: 40px; }
.strength-card > .icon { width: 36px; height: 36px; margin-bottom: 20px; color: var(--brand-600); }
.strength-label { font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--brand); line-height: 1.2; }
.strength-card h3 { margin: 6px 0 14px; }
.strength-card > p:last-child { color: var(--ink-2); }

/* Business cycle: two divisions feeding each other. Geometry matches the SVG viewBox 760×460. */
.business-cycle { position: relative; max-width: 760px; aspect-ratio: 760 / 460; margin: 8px auto 48px; }
.cycle-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-arc { fill: none; stroke-width: 3; stroke-linecap: round; }
.cycle-arc-top { stroke: var(--ink-2); }
.cycle-arc-bottom { stroke: var(--brand-600); }
.cycle-label {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  padding: 8px 18px; border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--shadow-card);
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.cycle-label-top { top: 8.7%; }
.cycle-label-bottom { top: 91.3%; color: var(--brand-700); }
.cycle-node {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36%; aspect-ratio: 1; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 50%; color: #fff; text-align: center;
}
.cycle-node-supply { left: 2%; background: var(--ink); }
.cycle-node-convert { right: 2%; background: var(--brand-600); }
.cycle-node span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.cycle-node strong { font-size: 28px; letter-spacing: -.02em; }
.cycle-node small { max-width: 82%; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.cycle-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-pop);
}
.cycle-hub img { width: 56px; height: auto; }

.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-block + .feature-block { margin-top: 96px; }
.feature-block > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.feature-block.reverse > img { order: 2; }
.feature-block h2 { margin-bottom: 12px; }
.feature-block .lead { margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.feature-block p { color: var(--ink-2); }
.feature-block h3 { margin: 28px 0 8px; font-size: 19px; }
.feature-block .chips, .feature-block .check-list { margin-top: 20px; }
.feature-block .text-link { margin-top: 24px; }

/* 11. Products ------------------------------------------------------------- */
.products-large { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.products-large .product-card .card-body { padding: 28px; }
.products-large .product-card h3 { font-size: 22px; }
.products-large .product-card p { font-size: 15px; }
.products-question { text-align: center; }
.products-question .button-row { justify-content: center; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.gallery-main { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.gallery-thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--bg-alt); opacity: .72;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border: 2px solid var(--brand-600); opacity: 1; }

.product-summary h2 { margin-bottom: 20px; font-size: 40px; }
.product-summary .lead { margin-bottom: 24px; }
.product-summary .chips { margin-top: 24px; }
.product-summary .button-row { margin-top: 32px; }

.product-specs { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--line-soft); }
.product-specs > h2 { margin-bottom: 12px; }
.product-specs > p { margin-bottom: 32px; color: var(--muted); }
.product-specs > .small { margin-top: 24px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table caption { padding-bottom: 14px; text-align: left; font-weight: 600; font-size: 16px; }
.data-table thead th { padding: 14px 12px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; }
.data-table tbody th, .data-table td { padding: 16px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.data-table tbody th { font-weight: 600; }

.capacity-panel { margin-top: 64px; padding: 48px; border-radius: var(--r-lg); background: var(--bg-dark); color: var(--on-dark); }
.capacity-panel p { color: var(--on-dark-muted); }
.capacity-panel .eyebrow { color: var(--brand-light); }
.capacity-panel h2 { margin-bottom: 32px; color: #fff; }
.capacity-panel > strong { display: block; margin: 8px 0; font-size: 56px; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.capacity-panel > strong span, .capacity-grid strong small { font-size: .45em; font-weight: 600; color: var(--on-dark-muted); }
.capacity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.capacity-grid > div { padding: 28px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); }
.capacity-grid span { display: block; font-size: 15px; color: var(--on-dark-muted); }
.capacity-grid strong { display: block; margin: 6px 0; font-size: 44px; line-height: 1.15; letter-spacing: -.03em; color: #fff; }

/* 12. Facility ------------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.process-card .card-body { padding: 28px; }
.process-card h3 { margin-top: 6px; }
.process-card p { font-size: 15px; }

.equipment-grid .badge { margin-top: 16px; background: #fff; border: 1px solid var(--line-soft); }
.bg-alt .equipment-grid .badge { background: var(--bg-alt); border: 0; }
.press-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 4 / 3; background: var(--line-soft); }
.press-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* 13. Location ------------------------------------------------------------- */
.location-block { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.location-block + .location-block { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line-soft); }
.location-info h2 { font-size: 30px; }
.location-info .lead { margin-top: 12px; font-size: 17px; }
.location-info .contact-facts { margin-top: 20px; }
.location-info .button-row { margin-top: 28px; }
.location-info .btn { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.location-block iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--r-lg); background: var(--bg-alt); }

/* 14. Contact ---------------------------------------------------------------- */
.contact-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.channel-card { position: relative; display: flex; flex-direction: column; padding: 36px 32px; }
.channel-card > .icon { width: 30px; height: 30px; margin-bottom: 18px; color: var(--brand-600); }
.channel-card h3 { margin-bottom: 10px; }
.channel-card p { font-size: 15px; color: var(--muted); }
.channel-card .button-row { margin-top: auto; padding-top: 28px; }
.channel-card .email-address { display: inline-block; margin-bottom: 10px; font-size: 20px; color: var(--brand-600); }
.channel-card .email-address:hover { text-decoration: underline; text-underline-offset: 4px; }
.channel-primary { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand-600); }
.channel-primary .brand-badge { position: absolute; top: 20px; right: 20px; }
.channel-office + .channel-office { margin-top: 18px; }
.channel-office strong { display: block; margin-bottom: 4px; font-size: 15px; }
.channel-office p { line-height: 1.7; color: var(--ink-2); }
.channel-office a:hover { color: var(--brand-600); }


.contact-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact-steps li { position: relative; padding-top: 20px; border-top: 2px solid var(--ink); }
.contact-steps .step-number { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.contact-steps h3 { font-size: 19px; margin-bottom: 8px; }
.contact-steps p { font-size: 15px; color: var(--muted); }

.faq-container { max-width: calc(840px + var(--gutter) * 2); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 16px 4px;
  font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--brand-600); }
.faq-list details p { padding: 0 4px 24px; color: var(--ink-2); }

/* 15. Inquiry board -------------------------------------------------------- */
.board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
.board-toolbar > div:first-child { margin-right: auto; }
.board-toolbar h2 { font-size: 30px; }
.board-toolbar p { font-size: 15px; color: var(--muted); }
.board-toolbar p strong { color: var(--brand-600); }
.board-search { display: flex; gap: 8px; }
.board-search select { width: 110px; }
.board-search input { width: 220px; }
.board-search select, .board-search input { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: #fff; }
.board-search .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }

.board-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.board-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.board-tabs a:hover { border-color: var(--ink); }
.board-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.board-toolbar .board-tabs { margin: 0 auto 0 0; }

.alert { margin-bottom: 24px; padding: 16px 20px; border-radius: var(--r-md); font-size: 15px; line-height: 1.6; }
.alert strong { margin-right: 8px; }
.alert.info { background: var(--brand-50); color: var(--ink-2); }
.alert.info strong { color: var(--brand-700); }
.alert.success { background: var(--done-bg); color: var(--done-fg); }
.alert.warning { background: var(--pending-bg); color: var(--pending-fg); }
.alert.error, .alert.danger { background: var(--danger-bg); color: var(--danger); }

.empty-state { padding: 80px 24px; text-align: center; border-top: 2px solid var(--ink); }
.empty-state > .icon { width: 44px; height: 44px; margin-bottom: 16px; color: var(--line); }
.empty-state h1, .empty-state h2, .empty-state h3 { margin-bottom: 8px; font-size: 22px; }
.empty-state p { color: var(--muted); }
.empty-state .btn, .empty-state .form-actions { margin-top: 24px; }
.empty-state .form-actions { justify-content: center; }
.empty-state .display { margin-bottom: 8px; color: var(--brand); }

.inquiry-table thead th:nth-child(1), .inquiry-table td:nth-child(1) { width: 72px; text-align: center; color: var(--muted); }
.inquiry-table thead th:nth-child(2), .inquiry-table td:nth-child(2) { width: 110px; font-size: 14px; color: var(--ink-2); }
.inquiry-table thead th:nth-child(4), .inquiry-table td:nth-child(4) { width: 110px; }
.inquiry-table thead th:nth-child(5), .inquiry-table td:nth-child(5) { width: 120px; font-size: 14px; color: var(--muted); }
.inquiry-table thead th:nth-child(6), .inquiry-table td:nth-child(6) { width: 110px; text-align: center; }
.inquiry-table tbody tr { transition: background-color .15s var(--ease); }
.inquiry-table tbody tr:hover { background: var(--bg-alt); }
.inquiry-table td { height: 64px; }
.inquiry-title a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 500; }
.inquiry-title a:hover { color: var(--brand-600); }
.inquiry-title .icon { width: 16px; height: 16px; color: var(--muted); }
.inquiry-title small { font-size: 12px; font-weight: 600; color: var(--done-fg); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%; font-size: 15px; color: var(--ink-2); }
.pagination a:hover { background: var(--bg-alt); }
.pagination a.active { background: var(--ink); color: #fff; font-weight: 600; }

/* 16. Forms ---------------------------------------------------------------- */
.form-shell { max-width: 840px; margin-inline: auto; }
.form-shell > h2 { margin-bottom: 12px; }
.form-shell > .lead { margin-bottom: 32px; font-size: 17px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="search"], .field select, .field textarea {
  display: block; width: 100%;
  min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background-color: #fff; font-size: 16px; line-height: 1.5;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 220px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .board-search input::placeholder { color: #A1A1A6; }
.field input:focus, .field select:focus, .field textarea:focus,
.board-search input:focus, .board-search select:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(196, 74, 27, .16);
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236E6E73' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217, 48, 37, .14) !important; }

.field-error, .upload-error { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--danger); }
.upload-error:empty { display: none; }
.counter { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: right; }

/* Inquiry type: radio inputs stay real and focusable; the span is the visible chip. */
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; display: inline-flex; cursor: pointer; }
.radio-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.radio-chips span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; font-size: 15px; font-weight: 500;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.radio-chips span::before {
  content: ''; width: 16px; height: 16px; flex: none;
  border: 1.5px solid var(--line); border-radius: 50%; background: #fff;
  transition: border .15s var(--ease);
}
.radio-chips label:hover span { border-color: var(--muted); }
.radio-chips input:checked + span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.radio-chips input:checked + span::before { border: 5px solid var(--brand-600); }
.radio-chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-chips[aria-invalid="true"] span, fieldset:has(input[aria-invalid="true"]) .radio-chips span { border-color: var(--danger); }

.checkbox-line { display: inline-flex !important; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; font-weight: 500 !important; cursor: pointer; }
.checkbox-line input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-600); cursor: pointer; }
.field details { margin-top: 4px; font-size: 14px; color: var(--muted); }
.field details summary { display: inline-flex; min-height: 32px; align-items: center; color: var(--brand-600); cursor: pointer; }
.field details p { margin-top: 8px; padding: 16px; border-radius: var(--r-sm); background: var(--bg-alt); line-height: 1.7; }
.field details .text-link { margin-top: 8px; font-size: 14px; }

.upload-zone {
  position: relative; padding: 28px 24px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--bg-alt);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.upload-zone.drag-over { border-color: var(--brand-600); background: var(--brand-50); }
.upload-zone > .icon { color: var(--muted); }
.upload-zone > p { margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.upload-zone input[type="file"] { max-width: 100%; font-size: 14px; }
.upload-zone input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.file-list { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-soft); font-size: 14px; }
.file-list li a { display: inline-flex; align-items: center; gap: 6px; }
.file-list li a:hover { color: var(--brand-600); }
.file-list .icon { width: 16px; height: 16px; color: var(--muted); }
.file-list button { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 32px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary { margin-bottom: 28px; padding: 20px 24px; border-left: 4px solid var(--danger); border-radius: var(--r-sm); background: var(--danger-bg); }
.error-summary strong { display: block; color: var(--danger); }
.error-summary ul { margin-top: 10px; font-size: 15px; }
.error-summary li + li { margin-top: 4px; }
.error-summary a { text-decoration: underline; text-underline-offset: 3px; }
.error-summary:focus { outline: none; box-shadow: 0 0 0 3px rgba(217, 48, 37, .16); }
.auth-card .error-summary { margin-bottom: 8px; text-align: left; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; }
.form-actions form { display: inline-flex; }
.form-actions .btn { min-width: 128px; }

.auth-card { max-width: 440px; margin-inline: auto; padding: 40px; text-align: center; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-card); background: #fff; }
.auth-card > .icon { width: 36px; height: 36px; margin-bottom: 12px; color: var(--brand-600); }
.auth-card h1, .auth-card h2 { margin-bottom: 8px; font-size: 26px; }
.auth-card > p { margin-bottom: 24px; font-size: 15px; color: var(--muted); }
.auth-card .field { margin-top: 16px; text-align: left; }
.auth-card .form-actions { margin-top: 28px; }
.auth-card .form-actions .btn { flex: 1; min-width: 0; }
.auth-card .alert { margin: 0 0 8px; text-align: left; }
.auth-card .otp-input { font-size: 22px; font-weight: 600; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-note a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.admin-session { margin: -16px 0 24px; font-size: 14px; color: var(--muted); }

/* 17. Inquiry detail ------------------------------------------------------- */
.inquiry-detail { max-width: calc(960px + var(--gutter) * 2); }
/* Section headings (첨부파일 etc.) vs. the post title, which always follows the badge row. */
.inquiry-detail > h2, .inquiry-detail > h3 { margin: 40px 0 12px; font-size: 18px; }
.inquiry-detail > .detail-meta + h1, .inquiry-detail > .detail-meta + h2 { margin: 16px 0 0; font-size: 34px; }
.inquiry-detail > h2 + .detail-meta, .inquiry-detail > h1 + .help-text { margin-top: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.detail-meta > span:not(.badge) { display: inline-flex; align-items: center; gap: 4px; }
.detail-meta .icon { width: 16px; height: 16px; }
.detail-meta.byline { gap: 4px 12px; }
.detail-meta.byline > * + *::before { content: '·'; margin-right: 12px; color: var(--line); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 32px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--bg-alt); }
.info-grid dt { margin-bottom: 2px; font-size: 13px; color: var(--muted); }
.info-grid dd { font-size: 16px; overflow-wrap: anywhere; }
.info-grid a:hover { color: var(--brand-600); }

.prose { white-space: normal; line-height: 1.8; }
.inquiry-body { margin-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }

.answer-card { margin-top: 40px; padding: 32px 36px; border-left: 4px solid var(--brand); border-radius: var(--r-lg); background: var(--bg-alt); }
.answer-card h2, .answer-card h3 { margin: 0 0 4px !important; font-size: 20px !important; }
.answer-card .help-text { margin: 0 0 16px; }
.answer-card .field { margin-top: 16px; }
.answer-card .form-actions { justify-content: flex-start; margin-top: 20px; }
.inquiry-detail > .alert { margin-top: 40px; }

/* 18. Admin ---------------------------------------------------------------- */
.admin-mode main h1 { font-size: 34px; margin-bottom: 28px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-summary .stat-card { border: 1px solid transparent; }
.admin-summary .stat-card:hover { border-color: var(--line); }
.admin-summary .stat-card span { margin: 0 0 4px; font-size: 15px; }
.stat-card.featured { background: var(--brand-50); }
.stat-card.featured strong { color: var(--brand-700); }
.admin-table { min-width: 1080px; font-size: 14px; }
.admin-table thead th, .admin-table td { padding: 14px 8px; white-space: nowrap; }
.admin-table .col-title { min-width: 200px; white-space: normal; }
.admin-table .col-title a { display: inline; }
/* Long company names / e-mail addresses wrap instead of pushing date·status·mail off-screen. */
.admin-table .col-company, .admin-table .col-email { max-width: 200px; white-space: normal; overflow-wrap: anywhere; }
.admin-table .col-company { min-width: 110px; }
.admin-table .col-email { min-width: 170px; }
.bulk-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 12px; }
.bulk-count { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bulk-bar .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.bulk-bar .btn:disabled { cursor: not-allowed; opacity: .4; }
.admin-table .col-check { width: 44px; text-align: center; }
.admin-table .col-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-600); cursor: pointer; vertical-align: middle; }
.mail-status { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.info-grid .mail-status { white-space: normal; }

/* 403/404/409/500 messages (views/inquiry/message.ejs). */
.status-message { padding: 48px 24px 24px; text-align: center; }
.status-code { margin-bottom: 12px; font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--brand); }
.status-message h1 { max-width: 640px; margin-inline: auto; font-size: 26px; line-height: 1.45; }
.status-message .form-actions { margin-top: 32px; }

/* 19. Footer --------------------------------------------------------------- */
.site-footer { padding-block: 64px 48px; background: var(--bg-dark); color: var(--on-dark-muted); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo img { height: 32px; width: auto; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-top nav a { color: var(--on-dark); }
.footer-top nav a:hover { color: var(--brand-light); }
.footer-info { padding-top: 32px; line-height: 1.8; }
.footer-info p { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-info p + p { margin-top: 4px; }
.footer-info strong { color: var(--on-dark); }
.footer-info a { color: var(--on-dark); }
.footer-info a:hover { color: var(--brand-light); }
.footer-info .footer-tip { display: block; margin-top: 20px; font-size: 13px; }
.footer-info .copyright { display: block; margin-top: 16px; font-size: 12px; }

/* 20. Error & legal -------------------------------------------------------- */
.error-page { display: grid; place-items: center; min-height: 60vh; padding-block: 120px; }
.error-code { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--brand); }
.error-page h1 { margin: 16px 0 8px; font-size: 30px; }
.error-page p:not(.error-code) { color: var(--muted); }
.error-page .button-row { justify-content: center; margin-top: 32px; }

.legal-copy { max-width: calc(760px + var(--gutter) * 2); }
.legal-copy h2 { margin: 48px 0 12px; font-size: 22px; }
.legal-copy p { color: var(--ink-2); }
.legal-copy .definition-list { margin-top: 16px; grid-template-columns: 120px 1fr; }

/* 21. Motion --------------------------------------------------------------- */
.js .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.will-reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   22. Responsive
   ========================================================================== */

/* Narrow desktop: tighten the header. */
@media (max-width: 1399px) and (min-width: 1024px) {
  .header-inner { gap: 24px; }
  .gnb { gap: 28px; }
  .header-actions { gap: 12px; }
  .logo img { height: 29px; }
  .header-email { font-size: 13px; }
  .mega-inner { gap: 20px; }
}

/* Quick menu: full card from 1536px, slim icon rail from 1280px (content narrows symmetrically),
   hidden below that where the sticky header CTA covers it. */
@media (max-width: 1535px) and (min-width: 1280px) {
  :root { --container: min(1200px, calc(100vw - 216px)); }
  .quick-menu { right: 12px; width: 60px; overflow: visible; }
  .quick-menu > a { position: relative; height: 60px; gap: 0; }
  .quick-menu > a:first-of-type { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .quick-menu > a:last-of-type { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .quick-menu > a span {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    padding: 6px 10px; border-radius: 6px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .15s var(--ease);
  }
  .quick-menu > a:hover span, .quick-menu > a:focus-visible span { opacity: 1; }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  .quick-menu { display: none; }
  .hero h1 { font-size: 40px; }
  .hero .lead { max-width: 420px; font-size: 17px; }
  .hero .lead br { display: none; }
  .hero-image { width: 60%; object-position: 50% 50%; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-timeline > li:nth-child(3n)::after { display: none; }
}

/* Tablet & mobile navigation */
@media (max-width: 1023px) {
  :root { --header-h: 60px; --section-y: 96px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .is-inquiry-write, .admin-mode { padding-bottom: 0; }

  .header-inner { justify-content: space-between; gap: 16px; }
  .logo img { height: 26px; }
  .desktop-navigation, .header-actions, .quick-menu { display: none; }
  .js .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; }
  .menu-toggle .icon { width: 26px; height: 26px; }

  /* Without JS the drawer is a plain menu block under the header. */
  .mobile-drawer { display: block; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .drawer-top, .drawer-actions { display: none; }
  .drawer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 12px var(--gutter); }
  .drawer-links summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 60px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
  }
  .drawer-links summary::-webkit-details-marker { display: none; }
  .drawer-links summary .icon { width: 22px; height: 22px; color: var(--muted); transition: transform .2s var(--ease); }
  .drawer-links details[open] summary .icon { transform: rotate(180deg); }
  .drawer-links details > a { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 12px; font-size: 16px; color: var(--muted); }
  .drawer-links details > a[aria-current], .drawer-links .drawer-section-link { color: var(--brand-600); }
  .drawer-links .drawer-section-link .icon { width: 16px; height: 16px; }

  /* With JS it becomes a slide-in dialog. */
  .js .mobile-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
    display: flex; flex-direction: column;
    width: min(100%, 480px);
    border: 0; box-shadow: var(--shadow-pop);
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s var(--ease), visibility .25s;
  }
  .js .mobile-drawer.is-open { transform: none; visibility: visible; }
  .js .drawer-top { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 8px 16px 8px var(--gutter); border-bottom: 1px solid var(--line-soft); }
  .drawer-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .js .drawer-links { display: block; flex: 1; overflow: auto; padding: 8px var(--gutter); }
  .js .drawer-links details { border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }
  .js .drawer-actions { display: grid; flex: none; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
  .drawer-actions .btn { min-height: 48px; padding: 12px 10px; font-size: 15px; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .35); }

  .mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1.2fr 1fr 1fr;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
  }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; }
  .mobile-actions a + a { border-left: 1px solid var(--line-soft); }
  .mobile-actions a:first-child { background: var(--brand-600); color: #fff; }
  .mobile-actions .icon { width: 20px; height: 20px; }
  .is-inquiry-write .mobile-actions, .admin-mode .mobile-actions { display: none; }

  /* Hero: photo on top, copy below, so the sign stays readable. */
  .hero { min-height: 0; align-items: flex-start; padding: calc(var(--header-h) + 54vw) 0 136px; }
  .hero-image {
    inset: 0 0 auto 0; width: 100%; height: calc(var(--header-h) + 60vw);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .hero::after { background: linear-gradient(180deg, rgba(17, 18, 20, .55) 0%, rgba(17, 18, 20, 0) 120px); }
  .hero h1 { font-size: 48px; }

  .quick-strip > div { padding-inline: 24px; }
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strengths-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .process-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .process-timeline > li:nth-child(3n)::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-channels { grid-template-columns: 1fr; }
  .contact-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block.reverse > img { order: 0; }
  .location-block { grid-template-columns: 1fr; gap: 28px; }
  .location-block iframe { min-height: 320px; }
  .products-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-toolbar > div:first-child { flex-basis: 100%; }
  .board-search { flex: 1; }
  .board-search input { flex: 1; width: auto; min-width: 0; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 16px; --section-y: 72px; }
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  .lead { font-size: 17px; }
  .display { font-size: 40px; }
  .section-heading { margin-bottom: 32px; }
  .subsection-heading { margin: 64px 0 24px; }
  .desktop-only { display: none; }

  .btn { min-height: 48px; padding: 12px 20px; }
  .btn-lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }
  .button-row { gap: 10px; }

  .drawer-links { grid-template-columns: 1fr; }

  .hero { padding: calc(var(--header-h) + 54vw) 0 112px; }
  .hero h1 { font-size: 34px; }
  .hero .eyebrow { font-size: 11px; line-height: 1.6; }
  .hero .lead { margin-top: 20px; font-size: 17px; }
  .hero .button-row { margin-top: 28px; }

  .quick-strip-wrap { margin-top: -48px; }
  .quick-strip { grid-template-columns: 1fr; gap: 24px; padding: 28px 4px; }
  .quick-strip > div + div { padding-top: 24px; border-left: 0; border-top: 1px solid var(--line-soft); }

  .stat-card { padding: 20px 24px; }
  .stat-card strong { font-size: 30px; }
  .heading-with-link { flex-direction: column; align-items: flex-start; gap: 12px; }

  .card-body, .padded-card, .office-card { padding: 24px; }
  .grid-2, .grid-3, .grid-4, .process-grid { grid-template-columns: 1fr; }

  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .products-grid > .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .products-grid > .product-card:last-child:nth-child(odd) .card-image { height: 100%; }
  .product-card .card-body { padding: 18px 16px; }
  .product-card h3 { font-size: 17px; }
  .product-card p { font-size: 13px; }
  .product-card .text-link { margin-top: 8px; font-size: 14px; }
  .products-large { grid-template-columns: 1fr; }

  .strengths-row { grid-template-columns: 1fr; gap: 32px; }
  .strength-item .icon { width: 32px; height: 32px; margin-bottom: 14px; }
  .strength-item h3 { font-size: 26px; }
  .strength-item p { font-size: 16px; }

  .process-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .process-timeline > li::after { display: none !important; }
  .process-timeline h3 { font-size: 15px; }

  .brands-section { padding-block: 48px; }
  .brand-chips { gap: 10px 24px; }
  .brand-chips span { font-size: 17px; }
  .cta-band { padding-block: 72px; }

  .business-cycle { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 300px; aspect-ratio: auto; }
  .cycle-arcs, .cycle-hub { display: none; }
  .cycle-label, .cycle-node { position: static; transform: none; }
  .cycle-label { font-size: 14px; white-space: normal; text-align: center; }
  .cycle-node { width: 240px; }
  .cycle-node strong { font-size: 24px; }
  .cycle-node-supply { order: 1; }
  .cycle-label-top { order: 2; }
  .cycle-label-top::before { content: '↓ '; }
  .cycle-node-convert { order: 3; }
  .cycle-label-bottom { order: 4; }
  .cycle-label-bottom::before { content: '↺ '; }

  .feature-block + .feature-block { margin-top: 64px; }
  .definition-list, .legal-copy .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 0; border-bottom: 0; }
  .definition-list dd { padding-top: 4px; }
  .brand-quote p { font-size: 18px; }
  .strength-card { padding: 28px; }
  .strength-label { font-size: 26px; }

  .product-summary h2 { font-size: 30px; }
  .product-specs { margin-top: 64px; padding-top: 48px; }
  .gallery-thumbnails { gap: 6px; }
  .capacity-panel { padding: 28px 24px; }
  .capacity-panel > strong { font-size: 40px; }
  .capacity-grid { grid-template-columns: 1fr; }
  .capacity-grid strong { font-size: 34px; }

  .channel-card { padding: 28px 24px; }
  .contact-steps { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 16px; }
  .location-info h2 { font-size: 24px; }
  .location-block iframe { min-height: 280px; }

  .board-toolbar h2 { font-size: 24px; }
  .board-search { flex-wrap: wrap; }
  .board-search select { width: 96px; }
  .board-toolbar > .btn { width: 100%; }

  /* Board rows become cards. */
  /* Board rows become cards: [type · · status] / [title + icons] / [author · date]. */
  .inquiry-table thead { display: none; }
  .inquiry-table, .inquiry-table tbody { display: block; width: 100%; }
  .inquiry-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
  .inquiry-table td { height: auto; padding: 0; border: 0; width: auto !important; font-size: 13px; color: var(--muted); text-align: left !important; }
  .inquiry-table td:nth-child(1) { display: none; }
  .inquiry-table td:nth-child(2) { order: 1; flex: 1; }
  .inquiry-table td:nth-child(6) { order: 2; }
  .inquiry-table td.inquiry-title { order: 3; flex-basis: 100%; font-size: 16px; line-height: 1.5; color: var(--ink); }
  .inquiry-table td:nth-child(4) { order: 4; }
  .inquiry-table td:nth-child(5) { order: 5; }
  .inquiry-table td:nth-child(5)::before { content: '·'; margin-right: 8px; color: var(--line); }
  .inquiry-title a { display: inline; }
  .inquiry-title a > span { display: inline-flex; vertical-align: -2px; margin: 0 3px; }
  .inquiry-title small { margin-left: 4px; white-space: nowrap; }
  .inquiry-table tbody tr:hover { background: none; }

  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-actions { margin-top: 36px; }
  .form-actions .btn { flex: 1; min-width: 0; }
  .auth-card { padding: 28px 20px; }

  .inquiry-detail > h1, .inquiry-detail > h2 { font-size: 26px; }
  .info-grid { grid-template-columns: 1fr; padding: 20px; }
  .answer-card { padding: 24px 20px; }

  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary .stat-card { display: flex; align-items: center; justify-content: space-between; }

  .site-footer { padding-block: 48px 32px; }
  .footer-info p { flex-direction: column; gap: 0; }
  .error-code { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.will-reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .lnb, .quick-menu, .mobile-actions, .mobile-drawer, .site-footer, .cta-band { display: none !important; }
  .section { padding-block: 24px; }
}
