:root {
  --ink: #101114;
  --ink-2: #17191d;
  --panel: #1c1e23;
  --line: rgba(196, 132, 90, 0.45);
  --copper: #c4845a;
  --copper-2: #e0b08a;
  --paper: #f4efe8;
  --muted: #b7b0a6;
  --header: 78px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 40px;
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  min-width: 148px;
}
.logo-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0.08em;
  color: var(--copper);
}
.logo-sub {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--copper-2);
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.nav a {
  color: #d9d3cb;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--copper);
}
.header-side {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang button {
  background: transparent;
  border: 0;
  color: #9c958c;
  padding: 6px 7px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lang button[aria-pressed="true"] { color: var(--copper); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3f0eb;
  font-size: 15px;
  white-space: nowrap;
}
.header-phone svg { color: var(--copper); }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  width: 44px;
  height: 40px;
  border-radius: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 7vw 36px;
  background: #0c0d10;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.28) 48%, rgba(8, 8, 10, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.15), rgba(8, 8, 10, 0.55)),
    url("../images/mexico-city.jpg") center 40% / cover no-repeat;
  animation: drift 22s ease-out both;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; margin-bottom: auto; margin-top: 8vh; }
.rule {
  display: block;
  width: 54px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: 22px;
  color: #eee8e0;
}
.chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid rgba(196, 132, 90, 0.75);
  border-radius: 12px;
  background: rgba(12, 12, 14, 0.28);
  backdrop-filter: blur(2px);
  color: #f6f1ea;
  font-size: 15px;
  line-height: 1.25;
}
.chip svg { flex: 0 0 auto; color: var(--copper); }
.chip:hover { background: rgba(196, 132, 90, 0.16); }

.section { padding: 84px 7vw; }
.section-tight { padding-top: 36px; }
.kicker {
  color: var(--copper);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin: 0 0 18px;
}
.lead { max-width: 720px; color: var(--muted); font-size: 18px; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.sign {
  margin-top: 28px;
  color: var(--copper-2);
  font-family: var(--serif);
  font-size: 22px;
}
.panel-grid, .card-grid, .office-grid, .value-grid {
  display: grid;
  gap: 16px;
}
.card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.value-grid, .office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .value, .office {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
}
.card h3, .value h3, .office h3, .person h3, .service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 8px 0 8px;
  line-height: 1.05;
}
.card p, .value p, .office p, .person p, .service li { color: var(--muted); }
.card .index { color: var(--copper); font-size: 13px; letter-spacing: 0.14em; }
.card:hover { border-color: var(--line); }

.band { background: var(--ink-2); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 7vw 36px;
  background: #0c0d10;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.82), rgba(10, 10, 12, 0.55)),
    url("../images/mexico-city.jpg") center 30% / cover no-repeat;
  animation: drift 22s ease-out both;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.95;
}
.page-hero p { max-width: 640px; color: #e7e0d7; font-size: 18px; }

.prose { max-width: 860px; }
.prose p { color: #d9d2c8; }
.timeline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.timeline span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--copper-2);
}

.people, .services { display: grid; gap: 18px; }
.person, .service {
  background: var(--panel);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 96px;
}
.person header, .service header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.role { color: var(--copper); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.person ul, .service ul { margin: 8px 0 0; padding-left: 18px; }
.group-title {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-size: 34px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
form {
  display: grid;
  gap: 12px;
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
}
label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
input, textarea {
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
textarea { min-height: 140px; resize: vertical; }
button[type="submit"], .button, .modal-card button {
  justify-self: start;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--copper);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
}
button[type="submit"]:hover, .button:hover, .modal-card button:hover { background: rgba(196, 132, 90, 0.16); }
.form-note { min-height: 1.4em; color: var(--copper-2); }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 10, 0.72);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 36px 28px;
  text-align: center;
}
.modal-card p {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
}
html[lang="ko"] .modal-card p { font-family: "Noto Serif KR", var(--serif); font-size: 22px; line-height: 1.55; }
.modal-card button { justify-self: center; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}
.gallery img:hover { transform: scale(1.04); }
.doc-list { display: grid; gap: 10px; }
.doc-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}
.doc-list a:hover { border-color: var(--line); }
.doc-year { color: var(--copper); font-family: var(--serif); font-size: 22px; }

.site-footer {
  padding: 28px 7vw 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a:hover { color: var(--paper); }

html[lang="ko"] body { font-family: "Noto Sans KR", "Outfit", sans-serif; }
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .page-hero h1,
html[lang="ko"] .group-title,
html[lang="ko"] .sign {
  font-family: "Noto Serif KR", "Cormorant Garamond", serif;
  line-height: 1.28;
  letter-spacing: -0.03em;
}
html[lang="ko"] .hero h1 { font-size: clamp(46px, 5.4vw, 72px); }
html[lang="ko"] .kicker { letter-spacing: 0.12em; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: 1fr 1fr; }
  .split, .contact-layout, .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header { padding: 0 18px; grid-template-columns: 1fr auto auto; }
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: flex-start;
  }
  .site-header.open .header-phone {
    display: inline-flex;
    position: absolute;
    top: calc(var(--header) + 280px);
    left: 20px;
    z-index: 21;
  }
  .hero { padding: 48px 20px 24px; min-height: auto; }
  .hero-copy { margin-top: 24px; }
  .chips, .card-grid, .office-grid, .gallery { grid-template-columns: 1fr; }
  .section, .page-hero { padding-left: 20px; padding-right: 20px; }
  .site-footer { flex-direction: column; padding-left: 20px; padding-right: 20px; }
  .welcome-media { grid-template-columns: 1fr; }
  .person-feature { grid-template-columns: 1fr; }
}

.hero .rule,
.page-hero .rule {
  transform-origin: left center;
  animation: grow 0.7s ease both;
}
.hero h1,
.page-hero h1 { animation: rise 0.9s ease 0.12s both; }
.hero .lede,
.page-hero p { animation: rise 0.9s ease 0.28s both; }
.chip { animation: rise 0.8s ease both; }
.chip:nth-child(1) { animation-delay: 0.4s; }
.chip:nth-child(2) { animation-delay: 0.5s; }
.chip:nth-child(3) { animation-delay: 0.6s; }
.chip:nth-child(4) { animation-delay: 0.7s; }
.chip:nth-child(5) { animation-delay: 0.8s; }
.card, .value, .office, .person, .service, .doc-list a, .chip, .lang button, button[type="submit"] {
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.3s ease;
}
.card:hover, .value:hover, .office:hover, .service:hover, .doc-list a:hover {
  transform: translateY(-4px);
}
.chip:hover { transform: translateY(-3px); }
.reveal {
  animation: rise 0.85s ease var(--d, 0ms) both;
  animation-play-state: paused;
}
.reveal.in { animation-play-state: running; }
.welcome-media {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}
.portrait {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 18%;
}
.wide-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 420px;
}
.wide-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.person-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.person-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 14px;
}
.place-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes grow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .welcome-media, .person-feature { grid-template-columns: 1fr; }
  .portrait img, .person-photo, .wide-photo, .wide-photo img { height: 260px; }
  .wide-photo.banner, .wide-photo.banner img { height: auto; }
}
.wide-photo.banner { max-height: none; }
.wide-photo.banner img {
  height: auto;
  object-fit: contain;
}
