/* ============================================================
   SY ENERTECH — Style System
   Deep Navy + White + Gold | Distributed Solar / Institutional
   ============================================================ */

:root {
  --color-primary: #0A1628;
  --color-primary-light: #16243F;
  --color-white: #FFFFFF;
  --color-offwhite: #F7F8FA;
  --color-accent: #C9A96E;
  --color-accent-bright: #D8BC84;
  --color-text-gray: #8892A0;
  --color-ink: #2C3645;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-light: rgba(10, 22, 40, 0.10);

  --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --section-padding: 120px 24px;
  --max-width: 1200px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 0.7s;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-primary);
  background: var(--color-white);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Section labels (English, gold) */
.label {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
}
.label .ko { color: var(--color-text-gray); letter-spacing: 0.08em; margin-left: 10px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > .reveal:nth-child(1) { transition-delay: .0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .40s; }
.stagger > .reveal:nth-child(7) { transition-delay: .48s; }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: rgba(10,22,40,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.nav__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav__links a { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--color-text-gray); letter-spacing: 0.02em; transition: color .25s var(--ease); }
.nav__links a:hover { color: var(--color-white); }
.nav__cta { font-family: var(--font-primary) !important; font-size: 12px !important; font-weight: var(--fw-bold) !important; color: var(--color-primary) !important; background: var(--color-accent); padding: 10px 22px; letter-spacing: 0.08em; text-transform: uppercase; transition: background .25s var(--ease), transform .2s var(--ease); }
.nav__cta:hover { background: var(--color-accent-bright); transform: translateY(-1px); color: var(--color-primary) !important; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--color-primary); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--color-primary) url('../images/hero-poster.jpg') center/cover no-repeat; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,22,40,0.94) 0%, rgba(10,22,40,0.66) 42%, rgba(10,22,40,0.20) 100%),
  linear-gradient(0deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0) 40%); }
.hero__content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero__h1 { font-family: var(--font-serif); font-weight: var(--fw-semibold); font-size: clamp(46px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -0.01em; color: var(--color-white); }
.hero__h1 .gold { color: var(--color-accent); font-style: italic; }
.hero__sub { margin-top: 26px; font-size: clamp(16px, 1.5vw, 19px); font-weight: var(--fw-light); color: rgba(255,255,255,0.78); letter-spacing: 0.01em; }
.hero__cta { display: inline-block; margin-top: 44px; font-size: 14px; font-weight: var(--fw-semibold); color: var(--color-primary); background: var(--color-accent); padding: 15px 38px; letter-spacing: 0.05em; transition: background .25s var(--ease), transform .2s var(--ease); }
.hero__cta:hover { background: var(--color-accent-bright); transform: translateY(-2px); }
.hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-accent), transparent); z-index: 1; }

/* ============================================================ SECTION BASES */
.s-light { background: var(--color-offwhite); padding: var(--section-padding); }
.s-dark { position: relative; background: var(--color-primary); padding: var(--section-padding); overflow: hidden; }
.s-dark .bg { position: absolute; inset: 0; z-index: 0; opacity: 0.5; background-size: cover; background-position: center; }
.s-dark .bg::after { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.62); }
.s-dark .container { position: relative; z-index: 1; }
.s-dark .label .ko { color: rgba(255,255,255,0.45); }

/* ABOUT */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about__lead { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); font-weight: var(--fw-medium); line-height: 1.25; color: var(--color-primary); }
.about__body p { font-size: 16px; color: var(--color-ink); margin-bottom: 20px; line-height: 1.85; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--color-primary); font-weight: var(--fw-semibold); }

/* STRENGTHS */
.strengths .label, .strengths h2 { color: var(--color-white); }
.strengths__head { max-width: 720px; margin-bottom: 56px; }
.strengths__lead { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 38px); font-weight: var(--fw-medium); color: var(--color-white); line-height: 1.3; }
.strengths__note { margin-top: 14px; color: var(--color-text-gray); font-size: 16px; }
.strengths__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.scard { background: var(--color-primary); padding: 32px 28px; transition: background .3s var(--ease); }
.scard:hover { background: var(--color-primary-light); }
.scard__no { font-family: var(--font-serif); font-size: 22px; font-weight: var(--fw-semibold); color: var(--color-accent); margin-bottom: 14px; }
.scard__t { font-size: 17px; font-weight: var(--fw-semibold); color: var(--color-white); margin-bottom: 8px; }
.scard__d { font-size: 14px; color: var(--color-text-gray); line-height: 1.6; }
.strengths__so { margin-top: 48px; font-family: var(--font-serif); font-size: clamp(20px, 2vw, 26px); font-weight: var(--fw-medium); color: rgba(255,255,255,0.9); }
.strengths__so b { color: var(--color-accent); font-weight: var(--fw-semibold); }

/* BUSINESS */
.biz__lead { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 38px); font-weight: var(--fw-medium); color: var(--color-primary); margin-bottom: 52px; max-width: 720px; line-height: 1.3; }
.biz__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bcard { background: var(--color-white); border: 1px solid var(--color-border-light); padding: 40px 34px; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.bcard:hover { border-color: var(--color-accent); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,22,40,0.08); }
.bcard__tag { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.14em; color: var(--color-accent); text-transform: uppercase; margin-bottom: 16px; }
.bcard__t { font-size: 20px; font-weight: var(--fw-semibold); color: var(--color-primary); margin-bottom: 14px; }
.bcard__d { font-size: 15px; color: var(--color-ink); line-height: 1.8; }

/* TRACK RECORD */
.record__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.record__lead { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: var(--fw-medium); color: var(--color-white); line-height: 1.2; }
.record__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.stat { text-align: center; }
.stat__n { font-family: var(--font-serif); font-size: clamp(58px, 8vw, 96px); font-weight: var(--fw-semibold); color: var(--color-accent); line-height: 1; }
.stat__l { margin-top: 12px; font-size: 14px; letter-spacing: 0.06em; color: rgba(255,255,255,0.78); }
.record__note { text-align: center; margin-top: 52px; color: var(--color-text-gray); font-size: 16px; }

/* VISION */
.vision__inner { max-width: 820px; }
.vision__lead { font-family: var(--font-serif); font-size: clamp(34px, 4.6vw, 60px); font-weight: var(--fw-medium); color: var(--color-primary); line-height: 1.32; letter-spacing: -0.01em; }
.vision__lead .gold { color: var(--color-accent); }
.vision__body { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--color-ink); line-height: 1.85; }

/* SAY YES */
.sayyes { position: relative; background: var(--color-primary); padding: 150px 24px; overflow: hidden; text-align: center; }
.sayyes .bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0.85; }
.sayyes .bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.78) 78%); }
.sayyes__inner { position: relative; z-index: 1; }
.sayyes__eyebrow { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 2.2vw, 26px); color: var(--color-accent); letter-spacing: 0.04em; }
.sayyes__big { font-family: var(--font-serif); font-weight: var(--fw-semibold); font-size: clamp(72px, 14vw, 168px); line-height: 1.06; color: var(--color-accent); margin: 12px 0 44px; letter-spacing: -0.01em; }
.sayyes__sub { font-size: clamp(15px, 1.6vw, 19px); color: rgba(255,255,255,0.82); font-weight: var(--fw-light); }

/* CONTACT */
.contact { position: relative; background: var(--color-primary); padding: 110px 24px 130px; overflow: hidden; }
.contact .bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center bottom; opacity: 0.55; transform: scaleX(-1); }
.contact .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,40,0.85), rgba(10,22,40,0.55)); }
.contact__inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.contact .label { color: var(--color-accent); }
.contact__sub { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); font-weight: var(--fw-regular); color: var(--color-white); line-height: 1.4; margin-bottom: 18px; }
.contact__mail { display: inline-block; font-size: 17px; color: var(--color-accent); letter-spacing: 0.02em; margin-bottom: 38px; border-bottom: 1px solid rgba(201,169,110,0.4); padding-bottom: 3px; transition: opacity .25s var(--ease); }
.contact__mail:hover { opacity: 0.75; }
.contact__cta-wrap { display: block; }
.contact__cta { display: inline-block; font-size: 14px; font-weight: var(--fw-semibold); color: var(--color-primary); background: var(--color-accent); padding: 15px 40px; letter-spacing: 0.05em; transition: background .25s var(--ease), transform .2s var(--ease); }
.contact__cta:hover { background: var(--color-accent-bright); transform: translateY(-2px); }

/* FOOTER */
.footer { background: var(--color-primary); border-top: 1px solid var(--color-border); padding: 30px 24px; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 22px; }
.footer__meta { font-size: 13px; color: var(--color-text-gray); }

/* ============================================================ RESPONSIVE */
@media (max-width: 860px) {
  :root { --section-padding: 84px 20px; }
  .nav__links { position: fixed; inset: 76px 0 0 0; background: var(--color-primary); flex-direction: column; justify-content: center; gap: 30px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 24px; }
  .nav__toggle { display: block; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .biz__grid { grid-template-columns: 1fr; }
  .record__stats { grid-template-columns: 1fr; gap: 44px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .nav__inner { height: 64px; }
  .nav__links { inset: 64px 0 0 0; }
  .hero { min-height: 88vh; }
  .hero__cta, .contact__cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media video { display: none; }
}
