/* ============================================================
   UNICORN Intellectual Property Law Firm
   Brand: Unicorn Gold + Warm Charcoal on Ivory (60 / 30 / 10)
   ============================================================ */
:root {
  --gold: #C9A35B;
  --gold-light: #D9B977;
  --gold-deep: #9C7432;
  --gold-grad: linear-gradient(135deg, #D4AF63 0%, #A87B3A 100%);
  --charcoal: #4A403C;
  --charcoal-dark: #3A322F;
  --ink: #1E1B1A;
  --ivory: #FAF8F3;
  --sand: #EFE9DF;
  --gray: #7D7470;
  --line: #E2DACC;

  --font-ko: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Inter", "Pretendard", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --wrap: 1180px;
  --radius: 14px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-ko);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); word-break: normal; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: var(--ivory); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold); }

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
html[lang="en"] .section-title { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
.section-lead { color: var(--gray); max-width: 620px; }
.section--dark .section-lead { color: #CFC6BE; }
.section-head { margin-bottom: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn--gold { background: var(--gold-grad); color: var(--ink); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168, 123, 58, .35); }
.btn--ghost { border: 1px solid rgba(250, 248, 243, .4); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(58, 50, 47, .96); box-shadow: 0 2px 20px rgba(0, 0, 0, .15); backdrop-filter: blur(8px); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-en); font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--gold); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #E9E3DA; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.nav-tel { color: var(--gold-light); font-size: 15px; font-weight: 600; font-family: var(--font-en); white-space: nowrap; }
.lang { display: flex; gap: 6px; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: #A99F97; }
.lang a.is-active { color: var(--gold); }
.lang a:hover { color: var(--ivory); }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ivory); content: ""; transition: .25s;
}
.menu-btn span { top: 21px; }
.menu-btn span::before { top: -7px; left: 0; }
.menu-btn span::after { top: 7px; left: 0; }
.header.is-open .menu-btn span { background: transparent; }
.header.is-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.header.is-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
.mobile-call { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(201, 163, 91, .18) 0%, transparent 55%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
  color: var(--ivory);
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; width: 100%; }
.hero-en { font-family: var(--font-serif); font-size: 15px; letter-spacing: .22em; color: var(--gold); margin-bottom: 24px; }
.hero-title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.22; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
html[lang="en"] .hero-title { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
.hero-title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 18px; color: #D8D0C7; max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border: 1px solid rgba(201, 163, 91, .45); border-radius: 999px;
  font-size: 14px; color: #E9E3DA;
}
.hero-badge svg { flex: none; color: var(--gold); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(440px, 100%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Trust strip ---------- */
.trust { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 34px 20px; text-align: center; position: relative; }
.trust li + li::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: var(--gold); opacity: .6; }
.trust strong { display: block; font-size: 17px; font-weight: 700; }
.trust span { font-size: 14px; color: var(--gray); }

/* ---------- About stats ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: #4E4642; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 22px; }
.stat-num { font-family: var(--font-serif); font-size: 44px; font-weight: 700; line-height: 1; color: var(--gold-deep); margin-bottom: 14px; }
.stat-num small { font-size: 20px; margin-left: 2px; }
.stat-label { font-size: 15px; color: #4E4642; line-height: 1.5; }

/* ---------- Practice ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px 36px; transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.practice-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(74, 64, 60, .1); }
.practice-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--gold-deep); margin-bottom: 28px; }
.practice-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.practice-card .sub { font-size: 14px; color: var(--gold-deep); font-weight: 600; margin-bottom: 18px; }
.practice-card ul { font-size: 15px; color: #4E4642; }
.practice-card li { padding-left: 14px; position: relative; }
.practice-card li + li { margin-top: 6px; }
.practice-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Attorney ---------- */
.attorney { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.attorney-photo { position: relative; }
.attorney-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--gold); border-radius: var(--radius); }
.attorney-photo img { position: relative; border-radius: var(--radius); background: #fff; width: 100%; aspect-ratio: 900 / 952; object-fit: cover; }
.attorney-role { color: var(--gold-deep); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.attorney-name { font-size: 40px; font-weight: 700; letter-spacing: .02em; margin-bottom: 26px; line-height: 1.2; }
html[lang="en"] .attorney-name { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
.attorney-name span { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--gray); margin-left: 12px; letter-spacing: .04em; }
.attorney-quote { font-size: 19px; line-height: 1.75; color: #3B3431; border-left: 2px solid var(--gold); padding-left: 22px; margin-bottom: 34px; }
.cred-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list svg { flex: none; color: var(--gold-deep); margin-top: 4px; }

/* ---------- Recognition ---------- */
.awards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.award { background: rgba(250, 248, 243, .04); border: 1px solid rgba(201, 163, 91, .25); border-radius: var(--radius); overflow: hidden; }
.award img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.award--tall img { aspect-ratio: 900 / 1080; object-position: top; }
.award figcaption { padding: 24px 26px 28px; }
.award-date { font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; color: var(--gold); margin-bottom: 6px; }
.award h3 { font-size: 19px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.award p { font-size: 14px; color: #CFC6BE; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold); color: var(--gold-deep);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact-info .section-title { color: var(--ivory); }
.contact-list { margin-top: 40px; }
.contact-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(250, 248, 243, .14); }
.contact-list li:last-child { border-bottom: 1px solid rgba(250, 248, 243, .14); }
.contact-list dt, .contact-list .k { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: var(--gold); padding-top: 5px; }
.contact-list .v { font-size: 17px; color: var(--ivory); }
.contact-list a.v:hover { color: var(--gold-light); }
.contact-list .v--big { font-family: var(--font-en); font-size: 26px; font-weight: 600; }

.form { background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: 44px 40px; }
.form h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.form > p { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #4E4642; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 91, .2); }
.form .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A99F97; padding: 56px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(250, 248, 243, .1); margin-bottom: 24px; }
.footer .brand-name { color: var(--ivory); }
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 20px; line-height: 1.8; }
.footer-info span { position: relative; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7D7470; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  html[lang="en"] .nav-tel { display: none; }
}
@media (max-width: 1180px) {
  .brand-sub { display: none; }
  .nav { gap: 20px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .attorney, .contact { gap: 48px; }
  .nav-tel { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .wrap { padding: 0 20px; }

  .menu-btn { display: block; }
  .mobile-call { display: grid; place-items: center; width: 44px; height: 44px; color: var(--gold); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal-dark); padding: 12px 20px 28px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .header.is-open { background: var(--charcoal-dark); }
  .header.is-open .nav { transform: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(250, 248, 243, .08); font-size: 17px; }
  .nav-tools { justify-content: space-between; padding-top: 20px; }
  .header-right { display: flex; align-items: center; gap: 4px; }

  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .hero-visual img { width: 120px; }
  .hero-actions { margin-bottom: 36px; }

  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3)::before { display: none; }
  .trust li { padding: 24px 12px; }
  .trust strong { font-size: 15px; }

  .about-grid, .attorney, .contact, .awards { grid-template-columns: 1fr; }
  .attorney-photo { max-width: 420px; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .step-num { margin: 0; grid-row: span 2; }
  .step h3 { margin: 4px 0 2px; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 20px; padding: 22px; }
  .stat-num { margin: 0; font-size: 36px; min-width: 96px; }
  .practice-grid { grid-template-columns: 1fr; }
  .form { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .brand-sub { display: none; }
  .attorney-photo::before { inset: 14px -14px -14px 14px; }
  .attorney-name span { display: block; margin: 6px 0 0; }
  .contact-list .v--big { font-size: 22px; }
}
