/* ─────────────────────────────────────────
   312& Company — Styles
   ───────────────────────────────────────── */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-weight: 300;
  color: #111111;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: 0.02em; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaaaaa;
  display: block;
  margin-bottom: 16px;
}

.body-copy {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  color: #555555;
  line-height: 1.85;
}

/* LANGUAGE TOGGLE */
body.lang-ko .en { display: none; }
body.lang-en .ko { display: none; }

/* LAYOUT */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

section { position: relative; }

.divider-line {
  width: 0;
  height: 1px;
  background: #111111;
  margin-bottom: 64px;
  transition: width 1.2s ease;
}

.section-header { margin-bottom: 0; }

.section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  margin-bottom: 80px;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.9rem;
  color: #888888;
  margin-top: -60px;
  margin-bottom: 72px;
  font-weight: 300;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  animation: navFadeDown 0.8s ease forwards;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes navFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #111111;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #111111;
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.lang-toggle:hover { color: #111; }
.lang-divider { color: #cccccc; }

body.lang-ko .lang-ko-label { color: #111111; }
body.lang-en .lang-en-label { color: #111111; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: #111;
  transition: all 0.3s ease;
}

.nav-mobile {
  display: none;
  background: rgba(255,255,255,0.98);
  padding: 24px 48px 32px;
}

.nav-mobile ul { display: flex; flex-direction: column; gap: 20px; }
.nav-mobile a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}

.hero-inner .section-label { margin-bottom: 32px; }

.hero-headline-ko,
.hero-headline-en {
  display: block;
  line-height: 1.1;
  overflow: hidden;
}

.hero-headline-ko { margin-bottom: 12px; }
.hero-headline-en {
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  color: #888888;
  margin-bottom: 40px;
}

/* Word stagger spans added by JS */
.hero-headline-ko .word,
.hero-headline-en .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordFadeUp 0.7s ease forwards;
}

@keyframes wordFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: #555555;
  line-height: 1.9;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-sub.visible {
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

.hero-cta.visible {
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid #111111;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 0;
}

.btn-primary { background: #111111; color: #FFFFFF; }
.btn-primary:hover { background: #333333; }

.btn-outline { background: transparent; color: #111111; }
.btn-outline:hover { background: #111111; color: #FFFFFF; }

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  transition: border-color 0.3s ease;
}

.btn-outline-white:hover { border-color: #FFFFFF; }

/* SCROLL INDICATOR */
.scroll-indicator {
  margin-top: 80px;
  display: flex;
  justify-content: flex-start;
  opacity: 0.5;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: #111111;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ─── ABOUT ─── */
#about .section-inner { padding-top: 140px; padding-bottom: 140px; }

.about-grid { display: grid; grid-template-columns: 1fr; max-width: 720px; }

.about-text h2 {
  margin: 20px 0 32px;
}

.vision-block {
  margin-top: 48px;
  padding-left: 24px;
  border-left: 1px solid #1A2E1E;
  position: relative;
  overflow: hidden;
}

.vision-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: #1A2E1E;
  transition: height 0.6s ease 0.5s;
}

.vision-block.visible::before { height: 100%; }

.vision-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 12px;
}

blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: #111111;
  line-height: 1.6;
  font-style: italic;
}

/* TEAM */
.team-section { margin-top: 100px; }
.team-section > .section-label { margin-bottom: 40px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #888888;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.team-title {
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.06em;
}

/* ─── SERVICES ─── */
#services { background: #FAFAFA; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid #e8e8e8;
  padding: 48px 36px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.service-card:hover {
  border-color: #111111;
  transform: translateY(-4px);
}

.service-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #bbbbbb;
  margin-bottom: 24px;
  line-height: 1;
  transition: color 0.3s ease;
}

.service-card:hover .service-num { color: #111111; }

.service-card h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.8;
  font-weight: 300;
}

/* ─── BRANDS ─── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.brand-slot {
  border: 1px solid #eeeeee;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-height: 120px;
  opacity: 0.35;
}

.brand-slot:hover { opacity: 1; transform: scale(1.03); }

.brand-logo {
  max-height: 40px;
  width: auto;
  margin-bottom: 8px;
  /* hide broken img */
}

.brand-logo[src=""] { display: none; }

.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111111;
}

/* ─── GLOBAL ─── */
#global {
  background: #111111;
  color: #FFFFFF;
}

#global .section-inner { padding-top: 140px; padding-bottom: 140px; }
#global .section-label { color: rgba(255,255,255,0.4); }
#global .divider-line { background: rgba(255,255,255,0.15); }

.global-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #FFFFFF;
  margin: 20px 0 24px;
}

.global-sub {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 72px;
}

.stats-row {
  display: flex;
  gap: 64px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; gap: 8px; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1;
}

.stat-text { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

/* ─── CONTACT ─── */
#contact .section-inner { padding-top: 140px; padding-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 20px;
}

.contact-left h2 { margin: 16px 0 24px; }

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: #888888;
}

.contact-info a:hover { color: #111111; }

/* FORM */
.contact-right form { display: flex; flex-direction: column; gap: 32px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #111111;
  background: transparent;
  border: none;
  border-bottom: 1px solid #cccccc;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: #111111;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbbbbb; }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: 11px;
  color: #c0392b;
  min-height: 16px;
  display: block;
}

.btn-submit {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  transition: background 0.3s ease;
  align-self: flex-start;
  border-radius: 0;
}

.btn-submit:hover { background: #333333; }
.btn-submit:active { transform: scale(0.98); }

.form-success {
  font-size: 0.875rem;
  color: #1A2E1E;
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
}

/* ─── FOOTER ─── */
.site-footer {
  margin-top: 100px;
  padding: 48px 0 40px;
  border-top: 1px solid #eeeeee;
}

.footer-info {
  font-size: 11px;
  color: #aaaaaa;
  letter-spacing: 0.06em;
  line-height: 1.9;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbbbbb;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: #111111; }

.footer-copy {
  font-size: 11px;
  color: #cccccc;
  letter-spacing: 0.06em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section labels don't translate */
.section-header .section-label.reveal { transform: translateY(12px); }

/* Global section fade-in only */
#global .reveal {
  transform: none;
  transition: opacity 0.8s ease;
  transition-delay: var(--delay, 0s);
}

#global .reveal.visible { opacity: 1; }

/* Divider line draw animation */
.divider-line.drawn { width: 60px; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-headline-ko .word,
  .hero-headline-en .word {
    opacity: 1;
    transform: none;
  }
}

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 1024px) {
  .section-inner { padding: 100px 36px; }
  .hero-inner { padding: 80px 36px; }
  .nav-inner { padding: 0 36px; }
  .nav-mobile { padding: 20px 36px 28px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* Mobile */
@media (max-width: 768px) {
  .section-inner { padding: 80px 24px; }
  .hero-inner { padding: 60px 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-mobile { padding: 20px 24px 28px; }

  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .nav-mobile.open { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-row { gap: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero-cta { flex-direction: column; gap: 12px; }
  .btn, .btn-outline { width: 100%; text-align: center; }
  .btn-submit { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 32px; }
}
