/* ══════════════════════════════════════
   TOKENS — CMT CarryMaxTech
   IT-Tech Palette: Deep Navy + Cyan Accent
══════════════════════════════════════ */
:root {
  --black:        #060810;
  --dark:         #090c14;
  --panel:        #0d1121;
  --panel2:       #111827;
  --border:       #1a2340;
  --border-hi:    #2a3a60;

  /* Cyan-electric accent replaces generic blue */
  --blue:         #0e7fc4;
  --blue-bright:  #22d3ee;          /* Cyan-400 — sharp IT look */
  --blue-dim:     #0a3a5c;
  --blue-glow:    rgba(34,211,238,0.15);
  --blue-line:    rgba(34,211,238,0.30);

  /* Green "online" accent — adds data-center vibe */
  --green:        #10b981;
  --green-dim:    rgba(16,185,129,0.12);

  --white:        #e8edf8;
  --grey:         #6272a4;
  --grey-mid:     #8899cc;
  --accent:       #67e8f9;          /* lighter cyan highlight */

  --nav-h:        68px;
  --max-w:        1360px;
  --pad-x:        clamp(20px, 5vw, 64px);
  --section-py:   clamp(80px, 10vh, 140px);
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  
  background: var(--black);
  color: var(--white);
  font-family: Arial, sans-serif,'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo',
               'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 2px; }

/* ══════════════════════════════════════
   NOISE OVERLAY  (subtle grain)
══════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
}

/* Circuit-board pattern overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 9997;
}

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.mono {
  font-family: 'Space Mono', monospace;
}
.bebas {
  font-family: 'Bebas Neue', sans-serif;
}
.label {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-bright);
  flex-shrink: 0;
}
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(6,8,16,0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}
#navbar.scrolled {
  background: rgba(6,8,16,0.97);
  border-color: var(--border-hi);
  box-shadow: 0 1px 0 rgba(34,211,238,0.08);
}

/* Animated top line on scroll */
#navbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  transition: width 0.6s ease;
}
#navbar.scrolled::after { width: 100%; }

.nav-logo img {
  height: 44px;
  object-fit: contain;
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(34,211,238,0.3));
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-family: 'Arial','Space Mono', monospace, '맑은 고딕';
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding-bottom: 5px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--blue-bright);
  box-shadow: 0 0 6px var(--blue-bright);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(9,12,20,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 28px var(--pad-x) 36px;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue-bright); padding-left: 8px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* full-bleed bg image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
  filter: saturate(0.5) hue-rotate(10deg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,8,16,0.6) 0%, transparent 30%, transparent 60%, rgba(6,8,16,0.95) 100%),
    linear-gradient(to right, rgba(6,8,16,0.98) 30%, rgba(6,8,16,0.2) 80%, transparent 100%);
}

/* animated perspective grid — tighter for IT feel */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(34,211,238,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

/* Scanning horizontal data line */
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/*.hero-scan::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-bright) 50%, transparent 100%);
  opacity: 0.4;
  animation: scanDown 8s linear infinite;
  box-shadow: 0 0 12px rgba(34,211,238,0.5);
}*/
@keyframes scanDown {
  0%   { top: -1px; }
  100% { top: 100%; }
}

/* cyan bloom */
.hero-bloom {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}
/* second bloom left for depth */
.hero-bloom-left {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  background: radial-gradient(circle, rgba(14,127,196,0.06) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x);
  max-width: calc(var(--max-w) + var(--pad-x)*2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* text side */
.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: revealUp 0.8s ease 0.1s both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--blue-bright);
  box-shadow: 0 0 6px var(--blue-bright);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  opacity: 0;
  animation: revealUp 0.8s ease 0.2s both;
}
.hero-tag {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--blue-bright);
  border: 1px solid var(--blue-line);
  padding: 5px 13px;
  background: rgba(34,211,238,0.06);
  text-transform: uppercase;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.hero-title {
  font-family: 'Arial','Bebas Neue', sans-serif;
  font-size: clamp(40px, 10.5vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0;
  animation: revealUp 0.9s ease 0.3s both;
}
.hero-title .hl {
  color: var(--blue-bright);
  display: block;
  text-shadow: 0 0 60px rgba(34,211,238,0.4), 0 0 120px rgba(34,211,238,0.15);
}

.hero-sub {
  margin-top: 28px;
  font-size: 16.5px;
  color: var(--grey-mid);
  line-height: 2;
  max-width: 420px;
  opacity: 0;
  animation: revealUp 0.9s ease 0.45s both;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: revealUp 0.9s ease 0.6s both;
}
.btn {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  border: none;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.btn-solid {
  background: var(--blue-bright);
  color: var(--black);
  font-weight: 700;
}
.btn-solid:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(34,211,238,0.35), 0 0 0 1px rgba(34,211,238,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-bright);
  border: 1px solid var(--blue-line);
}
.btn-ghost:hover {
  background: rgba(34,211,238,0.08);
  transform: translateY(-3px);
  border-color: var(--blue-bright);
  box-shadow: 0 0 20px rgba(34,211,238,0.12);
}

/* media side — video */
.hero-visual {
  flex: 0 0 clamp(260px, 32vw, 440px);
  opacity: 0;
  animation: revealFade 1.2s ease 0.5s both;
}
.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 24px 64px rgba(34,211,238,0.25)) drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

/* ps-media in hero = video panel — 글자 영역과 동일한 1:1 비율 */
#home .ps-media {
  flex: 1 1 0;                       /* hero-text와 동일하게 flex: 1 */
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: revealFade 1.2s ease 0.6s both;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.08), 0 32px 80px rgba(0,0,0,0.6);
}
#home .ps-media::before {
  content: 'LIVE';
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: 'Arial','Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#home .ps-media::after {
  content: '';
  position: absolute;
  top: 18px; left: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  z-index: 2;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Arial','Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  animation: revealFade 1s ease 1.2s both;
}
.scroll-track {
  width: 50px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.scroll-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-bright);
  box-shadow: 0 0 4px var(--blue-bright);
  transform-origin: left;
  animation: scanLine 2.4s ease-in-out infinite;
}
@keyframes scanLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  50.01% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ══════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════ */
section { padding: var(--section-py) 0; }

.sec-head {
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section-title-xl {
  font-family: 'Arial','Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.on { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.44s; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40vw; height: 40vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle at top right, rgba(34,211,238,0.055) 0%, transparent 60%);
  pointer-events: none;
}
/* Diagonal accent line */
#about::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), var(--green), transparent);
  opacity: 0.4;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;          /* Fixed: was 1fr 1fr but only 1 col in HTML */
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about-quote {
  font-family: 'Arial','Bebas Neue', sans-serif;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--blue-bright);
  border-left: 3px solid var(--blue-bright);
  padding-left: 24px;
  margin: 20px 0 32px;
  text-shadow: 0 0 40px rgba(34,211,238,0.2);
}

.about-body {
  font-size: 16px;
  line-height: 2.1;
  color: #8899cc;
}

/* competencies */
.competency-list { margin-top: 8px; }
.competency-item {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  padding-left: 16px;
  margin-left: -16px;
  padding-right: 16px;
}
.competency-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(34,211,238,0.06), transparent);
  transition: width 0.3s ease;
}
.competency-item:hover { border-color: var(--blue-line); }
.competency-item:hover::before { width: 100%; }
.c-num {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 14px;
  color: var(--blue-bright);
  padding-top: 2px;
}
.c-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.c-desc {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.95;
}

/* ══════════════════════════════════════
   PRODUCTS
══════════════════════════════════════ */
#products { background: var(--black); }

.product-cat {
  margin-bottom: clamp(72px, 10vh, 112px);
}
.cat-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  position: relative;
}
.cat-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}
.cat-num {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 11px;
  color: var(--blue-bright);
}
.cat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.06em;
}

/* ── spec bar ── */
.spec-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--blue-bright);
  padding: 18px 24px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.spec-chip {
  font-family:'Arial', 'Space Mono', monospace;
  font-size: 14px;
  color: var(--grey);
  white-space: nowrap;
}
.spec-chip b { color: var(--blue-bright); }

/* ── units grid ── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── 2×2 unit grid (LED 디스플레이 제품) ── */
.units-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .units-grid-2x2 { grid-template-columns: 1fr; }
}

/* product-single with two ps-info columns = unit cards layout */
.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: transparent;
  border: none;
  overflow: visible;
}

/* override hover on unit-card grid usage */
.product-single .ps-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0;
  background: transparent;
}

/* For products with media + spec table (video conference, AV switcher) */
.product-single.ps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-single.ps-layout .ps-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background: transparent;
}

.unit-card {
  text-align:center;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.35s;
  position: relative;
}
.unit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,211,238,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.unit-card:hover {
  border-color: var(--blue-bright);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(34,211,238,0.12), 0 0 0 1px rgba(34,211,238,0.15);
}
.unit-card:hover::before { opacity: 1; }

/* Corner accent on unit-card */
.unit-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--blue-dim) transparent transparent;
  transition: border-color 0.3s;
}
.unit-card:hover::after { border-color: transparent var(--blue-bright) transparent transparent; }

.unit-img-wrap {
  margin: 0 auto;
  width: 50%;
  aspect-ratio: 3/4;
  background: #080a14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.unit-img-wrap img {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.unit-card:hover .unit-img-wrap img { transform: scale(1.04); }

.unit-info {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
}
.unit-name {
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 8px;
}
.unit-size {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 18px;
  color: var(--grey);
  line-height: 1.75;
}
.unit-size em { color: var(--blue-bright); font-style: normal; }

/* ── ps-media ── */
.ps-media {
  background: #080a14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.ps-media img {
  width: 60%;
  max-height: 320px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-single:hover .ps-media img { transform: scale(1.04); }

.ps-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.ps-label {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ps-model {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.spec-table tr:hover { background: rgba(34,211,238,0.03); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.7;
  vertical-align: top;
}
.spec-table td:first-child {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  width: 44%;
  padding-right: 14px;
}
.spec-table td:last-child { color: var(--white); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), var(--green), transparent);
  opacity: 0.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.contact-headline {
  font-family: 'Arial','Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 16px 0 24px;
}
.contact-headline span {
  color: var(--blue-bright);
  display: block;
  text-shadow: 0 0 60px rgba(34,211,238,0.3);
}
.contact-body {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 20px;
  color: var(--grey);
  line-height: 2;
}

.contact-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue-bright), var(--green), var(--blue-dim));
}
/* bg data pattern */
.contact-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 150px; height: 150px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(34,211,238,0.025) 8px,
      rgba(34,211,238,0.025) 9px
    );
  pointer-events: none;
}
.contact-email-label {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.contact-email-link {
  font-family: 'Arial','Bebas Neue', sans-serif;
  font-size: clamp(14px, 2.8vw, 24px);
  letter-spacing: 0.05em;
  color: var(--blue-bright);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.25s, text-shadow 0.25s;
  display: block;
  margin-bottom: 32px;
}
.contact-email-link:hover {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(34,211,238,0.4);
}

.contact-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}
.contact-note {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.9;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 1px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}
footer img {
  height: 26px;
  filter: brightness(0.5);
  transition: filter 0.25s;
}
footer img:hover { filter: brightness(0.8); }
footer p {
  font-family: 'Arial','Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
}

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* ─ 1200px ─ */
@media (max-width: 1200px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─ 1024px ─ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-single { grid-template-columns: 1fr; }
  .product-single .ps-info { grid-template-columns: 1fr 1fr; }
  .product-single.ps-layout { grid-template-columns: 1fr; }
  .ps-media { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-visual { display: none; }

  /* 태블릿: 세로로 쌓기, 동영상 표시 유지 */
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  #home .ps-media {
    flex: none;
    width: 100%;
    max-height: 420px;
  }
}

/* ─ 768px (모바일) ─ */
@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: clamp(56px, 8vh, 88px) 0; }
  .units-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-single .ps-info { grid-template-columns: 1fr; }
  footer { padding: 24px 20px; }

  /* 모바일: 세로 배치 + 동영상 표시 */
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 40px;
  }
  #home .ps-media {
    display: block;           /* 숨기지 않고 표시 */
    flex: none;
    width: 100%;
    max-height: 280px;
  }
  #home .ps-media video {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
  .hero-title {
    font-size: clamp(52px, 14vw, 90px);
  }
}

/* ─ 480px ─ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(44px, 13vw, 72px); }
  #home .ps-media { max-height: 220px; }
  #home .ps-media video { height: 220px; }
  .units-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec-bar { flex-direction: column; gap: 8px; }
  .product-single { grid-template-columns: 1fr; }
  .product-single .ps-info { grid-template-columns: 1fr; }
  .ps-media { padding: 28px; }
  .units-grid-2x2 { grid-template-columns: 1fr; }
}
