/* ============================================================
   KOR Law LLP — design system v3
   Palette: #011120  #edeae5  #ac8255  #ffffff  #f3f0eb
============================================================ */

:root {
  --midnight: #1a2342;
  --midnight-soft: #242e54;
  --midnight-line: rgba(255, 255, 255, 0.10);
  --cream: #edeae5;
  --cream-warm: #f3f0eb;
  --bronze: #ac8255;
  --bronze-deep: #8c6a45;
  --bronze-soft: #c9a47a;
  --white: #ffffff;
  --text: #1a1d24;
  --muted: #5a6171;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(1, 17, 32, 0.06), 0 2px 12px rgba(1, 17, 32, 0.04);
  --shadow-md: 0 6px 20px rgba(1, 17, 32, 0.12);
  --shadow-lg: 0 20px 60px rgba(1, 17, 32, 0.18);
  --t: 260ms cubic-bezier(.22,.61,.36,1);
  --t-slow: 480ms cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--midnight); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--bronze); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--midnight);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; }
.accent {
  font-style: italic;
  color: var(--bronze);
  font-weight: 400;
}
/* Accent stays inline by default — use <br> before the .accent span to force a break */
.accent-block { display: block; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--muted); line-height: 1.7; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--bronze);
}
.eyebrow.center { justify-content: center; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(4rem, 9vw, 8rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-cream { background: var(--cream); }
.bg-cream-warm { background: var(--cream-warm); }
.bg-midnight { background: var(--midnight); color: var(--cream); }
.bg-midnight h1, .bg-midnight h2, .bg-midnight h3, .bg-midnight h4 { color: var(--white); }
.bg-midnight .eyebrow { color: var(--bronze-soft); }
.bg-midnight .eyebrow::before { background: var(--bronze-soft); }
.bg-midnight .lead { color: rgba(237, 234, 229, 0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border: 1px solid var(--midnight);
  background: var(--midnight);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all var(--t);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.btn::after {
  content: '→';
  font-size: .95rem;
  transition: transform var(--t);
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn:hover::after { transform: translateX(3px); }
.btn-bronze { background: var(--bronze); border-color: var(--bronze); }
.btn-bronze:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.btn-ghost { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn-ghost:hover { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.btn-on-dark { background: transparent; color: var(--white); border-color: var(--white); }
.btn-on-dark:hover { background: var(--bronze); color: var(--white); border-color: var(--bronze); }
.btn-no-arrow::after { display: none; }
.btn-small { padding: .65rem 1.2rem; font-size: .85rem; }

/* ---------- Header — Veritas-style (3 floating components) ---------- */
.site-header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;  /* let clicks through gaps between elements */
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  max-width: 1340px;
  margin: 0 auto;
  gap: 1rem;
}
.header-row > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.brand img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.brand-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: .08em;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nav-pill {
  background: rgba(1, 17, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-pill a {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .02em;
  padding: .25rem 0;
  position: relative;
  white-space: nowrap;
}
.nav-pill a:hover, .nav-pill a.active { color: var(--white); }
.nav-pill a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--bronze);
}
.nav-pill .dot {
  color: rgba(255, 255, 255, 0.32);
  font-size: .35rem;
  user-select: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  background: rgba(172, 130, 85, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--t);
}
.header-cta::after {
  content: '↗';
  font-size: .9rem;
  transition: transform var(--t);
}
.header-cta:hover { background: var(--white); color: var(--midnight); }
.header-cta:hover::after { transform: translate(2px, -2px); }

.nav-toggle {
  display: none;
  background: rgba(1, 17, 32, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: var(--t);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: var(--gutter);
  right: var(--gutter);
  background: var(--midnight);
  border-radius: var(--radius);
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: .25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  pointer-events: auto;
}
.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .85rem .25rem;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:active, .mobile-nav a:focus { color: var(--bronze); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-pill, .header-cta { display: none; }
  .site-header.open .mobile-nav { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 46px; }
  .brand-name { display: none; }
}

@media (max-width: 980px) {
  .hero-marquee {
    display: none !important;
  }
  .hero {
    padding-bottom: 3rem;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .hero { padding-top: 8rem; padding-bottom: 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; }
  .hero .lead { font-size: 1rem; }
  .hero-sub { min-height: 44vh; padding-top: 8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 9rem;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  background: var(--midnight);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,17,32,0.55) 0%, rgba(1,17,32,0.90) 90%);
  z-index: -1;
}
.hero-content {
  /* match header-row constraints so hero text aligns with header logo */
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}
.hero-inner { max-width: 880px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.hero h1 .accent { color: var(--bronze-soft); display: block; }
.hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(237, 234, 229, 0.85);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.3rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-wrap: wrap;
  text-align: center;
}
.hero-marquee .dot { color: var(--bronze); }

.hero-sub {
  min-height: 52vh;
  padding-top: 9rem;
  padding-bottom: 4rem;
}
.hero-sub h1 { margin-bottom: 2rem; }
.hero-sub .lead { margin-top: 0; }

/* ---------- Section heads ---------- */
.section-head {
  max-width: 780px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head.wide { max-width: 1100px; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head .lead { max-width: 720px; margin: 0 auto; }
.section-head.left .lead { margin: 0; }
.section-head.wide .lead { max-width: 100%; }

.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.split-head h2 { margin-bottom: 0; }
.split-head .lead { margin: 0; }
.split-head .right p { margin: 0 0 1em; }
.split-head .right p:last-child { margin-bottom: 0; }
@media (max-width: 880px) { .split-head { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- What Sets KOR Apart — pillars (forced 5 columns) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(1, 17, 32, 0.10);
}
.pillar {
  padding: 2.5rem 1.6rem;
  border-bottom: 1px solid rgba(1, 17, 32, 0.10);
  border-right: 1px solid rgba(1, 17, 32, 0.10);
}
.pillar:last-child { border-right: none; }
.pillar .num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--bronze);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: block;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: .8rem; line-height: 1.25; }
.pillar p { color: var(--muted); margin: 0; font-size: .92rem; line-height: 1.6; }
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(3n) { border-right: none; }
  .pillar:nth-child(-n+3) { border-top: none; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none !important; }
}

/* ---------- KOR Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}
.value:last-child { border-right: none; }
@media (max-width: 880px) {
  .value { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
  .value:last-child { border-bottom: none; }
}
.value-letter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 8vw, 7.5rem);
  color: var(--bronze);
  line-height: 1;
  display: block;
  font-weight: 400;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.value h3 { color: var(--white); margin-bottom: .8rem; font-size: 1.55rem; }
.value .label {
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}
.value p { color: rgba(237, 234, 229, 0.7); margin: 0; font-size: .96rem; }

/* ---------- Marquee (auto-scroll) ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-track.fast { animation-duration: 30s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee.reverse .marquee-track { animation-direction: reverse; }

/* ---------- Areas of Focus (homepage central-focus practice areas) ---------- */
.areas-focus {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
  background: var(--cream-warm);
}
.areas-focus .marquee + .marquee { margin-top: 1rem; }
.areas-focus .marquee-track { gap: 1rem; }
.area-pill {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(1, 17, 32, 0.10);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-size: .92rem;
  color: var(--midnight);
  flex-shrink: 0;
  transition: var(--t);
}
.area-pill:hover {
  border-color: var(--bronze);
  background: var(--cream);
}
.area-pill .icon {
  width: 22px;
  height: 22px;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Practice areas — image cards (Veritas style) ---------- */
.areas-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 880px) { .areas-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .areas-cards { grid-template-columns: 1fr; } }
.area-card-image {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(1, 17, 32, 0.06);
}
.area-card-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.area-card-image .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.area-card-image .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.area-card-image:hover .img-wrap img { transform: scale(1.04); }
.area-card-image .body {
  padding: 1.8rem;
  background: var(--cream-warm);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.area-card-image h3 {
  font-size: 1.3rem;
  margin-bottom: .8rem;
}
.area-card-image p {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
}
.area-card-image .more {
  color: var(--midnight);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: .92rem;
}
.area-card-image .more:hover { color: var(--bronze); }
.area-card-image .more::after {
  content: '→';
  transition: transform var(--t);
}
.area-card-image .more:hover::after { transform: translateX(3px); }

/* ---------- Why Choose KOR — Veritas-style 2-col ---------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.why-choose-grid > * { min-width: 0; }
@media (max-width: 980px) { .why-choose-grid { grid-template-columns: 1fr; gap: 3rem; } }

.why-choose-left { padding-right: 1rem; }
.mini-feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(1, 17, 32, 0.08);
}
.mini-feature:last-child { border-bottom: 1px solid rgba(1, 17, 32, 0.08); }
.mini-feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
}
.mini-feature h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: .35rem;
  letter-spacing: -.005em;
}
.mini-feature p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }

.why-choose-right { display: flex; flex-direction: column; gap: 1rem; }
.why-image {
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}
.why-image img { width: 100%; height: 100%; object-fit: cover; }

.stat-block {
  background: var(--cream-warm);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 480px) {
  .stat-block { padding: 1.25rem 1.25rem; gap: 1.25rem; }
}
.stat-block .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--midnight);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.stat-block .num .suffix {
  font-size: 0.45em;
  color: var(--midnight);
  margin-left: .05em;
  font-style: italic;
}
.stat-block .num .prefix { font-size: .55em; color: var(--midnight); margin-right: .05em; }
.stat-block .text .label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: .2rem;
  font-size: .96rem;
}
.stat-block .text .descriptor {
  font-size: .85rem;
  color: var(--bronze);
  margin: 0;
}

/* ---------- Results cards ---------- */
.result-card {
  background: var(--white);
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(1, 17, 32, 0.08);
  transition: var(--t);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--bronze);
  transition: width var(--t-slow);
}
.result-card:hover::before { width: 100%; }
.result-card:hover { box-shadow: var(--shadow-md); }
.result-card .tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
  font-weight: 500;
}
.result-card h3 { font-size: 1.18rem; margin-bottom: .9rem; line-height: 1.35; }
.result-card p { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.55; }

/* When in marquee: fixed width, equal heights via flex stretch */
.marquee .result-card {
  width: 360px;
  flex-shrink: 0;
  min-height: 260px;
}
.marquee .result-card h3 { font-size: 1.2rem; }
.marquee .result-card p { font-size: 1rem; }
/* Area pill marquee: keep centered alignment */
.marquee .area-pill { align-self: center; }

/* Static grid (proven-results.html sections) */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

/* ---------- Attorney cards (plus hover) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.attorney-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--midnight);
  aspect-ratio: 4/5;
  cursor: pointer;
  display: block;
}
.attorney-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t);
}
.attorney-card:hover img { transform: scale(1.04); opacity: .85; }
.attorney-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(1, 17, 32, 0.92) 60%);
  color: var(--white);
}
.attorney-card .meta h3 { color: var(--white); font-size: 1.5rem; margin-bottom: .15rem; }
.attorney-card .meta .role { color: var(--bronze-soft); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.attorney-card .plus {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  transition: var(--t);
  z-index: 2;
}
.attorney-card:hover .plus { background: var(--bronze); color: var(--white); transform: rotate(90deg); }

/* ---------- Full bio block (about page) ---------- */
.bio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
}
.bio .photo-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-md);
}
.bio .photo-col {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bio .badge-wrap {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  background: var(--white);
  border: 1px solid rgba(1, 17, 32, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bio .badge-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bio .badge-wrap span {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--midnight);
  line-height: 1.4;
}
@media (max-width: 880px) {
  .bio .photo-col { position: static; max-width: 320px; }
}
.bio .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bio h2 { margin-bottom: .15rem; }
.bio .role {
  color: var(--bronze);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}
.bio p { color: var(--muted); }
.bio .credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(1, 17, 32, 0.1);
}
.bio .credentials h4 {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--bronze);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: .8rem;
}
.bio .credentials p, .bio .credentials li {
  font-size: .92rem;
  color: var(--midnight);
  margin: 0 0 .4rem;
  line-height: 1.55;
}
.bio .credentials ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 880px) {
  .bio { grid-template-columns: 1fr; gap: 2rem; }
  .bio .photo-wrap { position: static; max-width: 320px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info h3 { margin-bottom: 2rem; font-size: 1.3rem; }
.contact-info dl { margin: 0; display: grid; gap: 1.6rem; }
.contact-info dt {
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .35rem;
  font-weight: 500;
}
.contact-info dd {
  margin: 0;
  color: var(--midnight);
  font-size: 1rem;
  line-height: 1.55;
}
.contact-info dd a { color: var(--midnight); }
.contact-info dd a:hover { color: var(--bronze); }

.contact-form {
  background: var(--white);
  padding: 2.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(1, 17, 32, 0.08);
  box-shadow: var(--shadow-sm);
}

/* ---------- Legal pages — long-form prose ---------- */
.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--midnight);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 2.2rem;
  margin-bottom: .8rem;
}
.legal-prose h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--midnight);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.legal-prose p { margin: 0 0 1.2rem; color: var(--text); }
.legal-prose ul, .legal-prose ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}
.legal-prose li { margin-bottom: .5rem; }
.legal-prose strong { color: var(--midnight); font-weight: 600; }
.legal-prose a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--bronze-deep); }
.legal-prose .last-updated {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(1, 17, 32, 0.1);
}

.contact-form h3 { margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.field input, .field textarea {
  font-family: inherit;
  /* 16px to prevent iOS Safari zoom on focus */
  font-size: 16px;
  padding: .9rem 1rem;
  border: 1px solid rgba(1, 17, 32, 0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--midnight);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(172, 130, 85, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--midnight);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1.2rem; }
.cta-banner h2 .accent { display: block; color: var(--bronze-soft); }
.cta-banner p {
  color: rgba(237, 234, 229, 0.78);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Blog post detail ---------- */
.article-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--bronze);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2rem;
}
.back-link::before {
  content: '←';
  font-size: 1rem;
}
.back-link:hover { color: var(--midnight); }
.article-cat {
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.article-cat::before {
  content: '— KOR Law LLP ';
  color: var(--midnight);
  margin-right: .4rem;
  letter-spacing: .14em;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--midnight);
  margin: 0 0 1.5rem;
  letter-spacing: -.01em;
}
.article-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(1, 17, 32, 0.1);
  border-bottom: 1px solid rgba(1, 17, 32, 0.1);
  margin-bottom: 3rem;
  font-size: .92rem;
}
.article-byline .author { font-weight: 600; color: var(--midnight); }
.article-byline .sep { color: rgba(1, 17, 32, 0.3); }
.article-byline .meta { color: var(--muted); }
.article-hero-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 3rem;
  box-shadow: var(--shadow-md);
}
.article-section-head {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin: 3rem 0 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 17, 32, 0.12);
}
.article-section-head:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.4rem;
}
.article-body strong { color: var(--midnight); }
.article-callout {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--bronze-deep);
  border-left: 3px solid var(--bronze);
  padding: 1rem 0 1rem 1.8rem;
  margin: 2rem 0;
}
.article-cta-box {
  margin-top: 4rem;
  padding: 3rem var(--gutter);
  background: var(--cream-warm);
  border-radius: var(--radius);
}
.article-cta-box .eyebrow { margin-bottom: 1rem; }
.article-cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}
.article-cta-box p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.article-cta-box .author-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 17, 32, 0.1);
  color: var(--midnight);
  font-weight: 500;
}
.article-cta-box .author-line .roles {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  color: var(--muted);
  margin-top: .25rem;
}
.statutory-refs {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 17, 32, 0.12);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
.statutory-refs h4 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 1rem;
}
.statutory-refs p { margin: 0 0 .7rem; font-size: .82rem; color: var(--muted); }
.article-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 17, 32, 0.08);
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Pull quote ---------- */
.pullquote { text-align: center; padding: 5rem 0; }
.pullquote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--midnight);
  margin: 0 auto;
  max-width: 920px;
  padding: 0 var(--gutter);
  font-weight: 400;
  text-align: center;
  transform: none !important;
}
.pullquote.reveal, .pullquote blockquote.reveal { transform: none; }
.pullquote .accent { color: var(--bronze); }
.bg-midnight .pullquote blockquote { color: var(--white); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 880px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream);
}
.blog-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.blog-card:hover .img-wrap img { transform: scale(1.04); }
.blog-card .body {
  padding: 1.5rem 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  font-size: .78rem;
}
.blog-card .cat {
  background: var(--cream-warm);
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  color: var(--bronze);
  font-weight: 500;
  letter-spacing: .04em;
}
.blog-card .date { color: var(--muted); }
.blog-card h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
}
.blog-card h3 a { color: var(--midnight); }
.blog-card h3 a:hover { color: var(--bronze); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: rgba(237, 234, 229, 0.7);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.site-footer a {
  color: rgba(237, 234, 229, 0.68);
  display: block;
  margin-bottom: .7rem;
  font-size: .92rem;
}
.site-footer a:hover { color: var(--bronze); }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer .brand img { height: 64px; }
.footer-about {
  font-size: .92rem;
  color: rgba(237, 234, 229, 0.55);
  line-height: 1.7;
  margin: 1rem 0;
}
.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--bronze-soft);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(237, 234, 229, 0.5);
}
.footer-bottom a { display: inline; margin: 0; color: rgba(237, 234, 229, 0.5); }
.social-row {
  display: flex;
  gap: .65rem;
  margin-top: .5rem;
}
.social-row a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin: 0;
  transition: var(--t);
  color: rgba(255, 255, 255, 0.7);
}
.social-row a:hover { background: var(--bronze); color: var(--white); border-color: var(--bronze); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 3.5rem; }
.no-bullets { list-style: none; padding: 0; margin: 0; }

/* Global guard against horizontal overflow (long URLs, long words, etc.) */
html, body { overflow-x: hidden; }
body { word-wrap: break-word; overflow-wrap: anywhere; }
h1, h2, h3, h4 { overflow-wrap: break-word; word-break: normal; hyphens: auto; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms ease, transform 900ms cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
