/* Same navy/blue palette as css/styles.css. Raleway for text (as in index.html),
   a serif for headings. Layout inspired by classic professional-firm sites. */
:root {
  --navy: #1b3280;
  --navy-deep: #142766;
  --blue: #2a4fc4;
  --tint: #e6ecf6;
  --paper: #f4f7fb;
  --white: #ffffff;
  --ink: #14204a;
  --muted: #4a5780;
  --on-navy-soft: #c9d3f0;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --section: clamp(72px, 9vw, 128px);

  --sans: "Raleway", sans-serif;
  --serif: "Playfair Display", "Noto Serif KR", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--white); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-blue { color: var(--blue); }

/* ── Buttons: square, flat, one shape ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  min-height: 48px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--blue); }
.btn-line { border-color: var(--white); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--navy); }

/* ── Header ────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 10; background: var(--white); transition: border-color 0.2s; border-bottom: 1px solid transparent; }
.bar.scrolled { border-bottom-color: var(--tint); }
.bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.wordmark img { border-radius: 2px; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark-text strong { font-family: var(--serif); font-size: 1.125rem; color: var(--navy); }
.wordmark-text small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.bar-links { display: flex; gap: 30px; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.bar-links a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.bar-links a:hover { border-bottom-color: var(--blue); }
.lang { background: none; border: 0; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted); cursor: pointer; padding: 8px 0; }
.lang:hover { color: var(--navy); }
.bar-cta { padding: 10px 22px; min-height: 0; }

/* ── Hero: navy field, serif headline, portrait standing on the bottom edge ─ */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
  min-height: min(680px, calc(100svh - 76px));
}
.hero-copy { padding: clamp(56px, 8vw, 112px) 0; align-self: center; }
.hero .label { color: var(--on-navy-soft); }
.hero h1 { font-size: clamp(1.75rem, 0.8rem + 2.3vw, 3rem); line-height: 1.22; margin-bottom: 24px; }
.hero-sub { font-size: 1.1875rem; color: var(--on-navy-soft); max-width: 30em; margin-bottom: 36px; }
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }

/* ── About: pale panel with the greeting, navy side with three facts ───── */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-deep); color: var(--white); }
.about-panel { background: var(--tint); color: var(--ink); display: flex; justify-content: flex-end; }
.about-panel-inner { width: 100%; max-width: calc(var(--max) / 2); padding: var(--section) clamp(24px, 4vw, 64px) var(--section) var(--pad); }
.about-panel h2 { color: var(--navy); margin-bottom: 20px; }
.about-panel p + p { margin-top: 14px; }
.creds { padding: var(--section) var(--pad) var(--section) clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; max-width: calc(var(--max) / 2 + var(--pad)); }
.creds h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--on-navy-soft); margin-bottom: 20px; }
.creds li { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 1rem + 1.7vw, 2.5rem); line-height: 1.3; padding: 10px 0; }

/* ── Services: text only, three across ─────────────────────────────────── */
.services { padding: var(--section) 0; background: var(--white); }
.services h2 { color: var(--navy); margin-bottom: clamp(36px, 5vw, 64px); max-width: 18em; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px); }
.service-grid h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.1875rem; }
.service-grid p { color: var(--muted); font-size: 1rem; }

/* ── Background: two tinted tiles ──────────────────────────────────────── */
.background { padding: var(--section) 0; background: var(--paper); }
.background h2 { color: var(--navy); margin-bottom: clamp(32px, 4vw, 56px); }
.panels { display: grid; grid-template-columns: 1fr; gap: 24px; }
.panel { background: var(--tint); padding: clamp(28px, 4vw, 48px); }
.panel li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; line-height: 1.45; font-size: 1.125rem; }
.panel li span { font-weight: 600; }
.panel em { font-style: normal; font-size: 0.9375rem; color: var(--muted); text-align: right; }

/* ── Contact: deep navy ─────────────────────────────────────────────────── */
.contact { background: var(--navy-deep); color: var(--white); padding: var(--section) 0; }
.contact .label { color: var(--on-navy-soft); }
.contact h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.contact-note { color: var(--on-navy-soft); margin-bottom: clamp(36px, 5vw, 64px); max-width: 32em; }
.contact-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 40px clamp(32px, 6vw, 96px); }
.contact-grid .k { display: block; color: var(--on-navy-soft); font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.contact-grid a { font-size: 1.1875rem; font-weight: 600; line-height: 1.5; display: inline-block; padding: 4px 0; transition: color 0.2s; }
.contact-grid a:hover { color: var(--on-navy-soft); }
.copy::after {
  content: attr(data-state);
  margin-left: 0.7em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-navy-soft);
  opacity: 0;
  transition: opacity 0.2s;
}
.copy.copied::after { opacity: 1; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot { background: var(--navy); color: var(--on-navy-soft); font-size: 0.875rem; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 22px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-name { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.foot-name img { border-radius: 2px; }

/* ── Motion ────────────────────────────────────────────────────────────── */
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-photo img { animation: rise 1s var(--ease) 0.15s both; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-photo img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Tablet / phone ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bar-links { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-panel-inner { max-width: none; padding: var(--section) var(--pad); }
  .creds { padding: var(--section) var(--pad); max-width: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  .bar-inner { gap: 16px; }
  .wordmark-text small { display: none; }
  .bar-cta { padding: 9px 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding: 48px 0 36px; }
  .hero-photo img { max-width: 320px; margin: 0 auto 0 0; }
  .service-grid { grid-template-columns: 1fr; }
  .panel li { flex-direction: column; gap: 2px; }
  .panel em { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
