/* ============================================================================
   Joyce Batterson — General Counsel & Sr. Compliance Executive
   ========================================================================== */

:root {
  --bg:           #f9f9f9;
  --surface:      #ffffff;
  --border:       #ededee;
  --ink:          #1d1d25;
  --ink-strong:   #000000;
  --muted:        #78787d;
  --icon:         #8e8e92;
  --blue:         #2171ea;
  --blue-hover:   #1d69db;
  --dark:         #1d1d25;
  --dark-hover:   #000000;
  --light:        #ededee;
  --light-hover:  #e8e8e8;
  --light-ink:    #333333;
  --on-dark:      #f9f9f9;

  --sans:  "Noto Sans", "Noto Sans Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif KR", "Noto Serif KR Placeholder", Georgia, "Times New Roman", serif;

  --radius-card: 16px;
  --radius-pill: 8px;

  --appear-ease: cubic-bezier(0.44, 0, 0.56, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
}

/* In-page nav lands each section 120px from the top — clear of the fixed bar. */
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.sprite { display: none; }

/* Icons --------------------------------------------------------------------- */
.ico24 { width: 24px; height: 24px; flex: none; }
.ico16 { width: 16px; height: 16px; flex: none; color: var(--icon); }
.badge { width: 56px; height: 56px; flex: none; }

/* ============================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 720px;
  max-width: calc(100% - 32px);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow:
    0 0.602187px 2.04744px -0.416667px rgba(0, 0, 0, 0.01),
    0 2.28853px 7.78101px -0.833333px rgba(0, 0, 0, 0.02),
    0 10px 34px -1.25px rgba(0, 0, 0, 0.04);
}

.nav__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: inherit;
  pointer-events: none;
}

.nav__photo { flex: none; width: 40px; height: 40px; }
.nav__photo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links a {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  text-align: center;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--blue); }

.nav__cta { flex: none; }

/* ============================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  transition: background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--blue  { background: var(--blue);  color: var(--on-dark); }
.btn--blue:hover  { background: var(--blue-hover); }

.btn--dark  { background: var(--dark);  color: var(--on-dark); }
.btn--dark:hover  { background: var(--dark-hover); }
.btn--dark .ico24 { color: var(--border); }

.btn--light { background: var(--light); color: var(--light-ink); }
.btn--light:hover { background: var(--light-hover); }

/* ============================================================================
   Page shell
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 120px 80px 48px;
}

/* ============================================================================
   Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 480px;
  max-width: 100%;
}

.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: var(--ink);
  text-align: center;
  width: 100%;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 24px;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Availability badge -------------------------------------------------------
   Currently commented out in index.html; these rules stay so it can be
   switched back on without rebuilding it. */
.available { gap: 12px; }

.dot {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  overflow: hidden;
}

.dot__glow,
.dot__core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 100%;
}

.dot__glow {
  width: 12px;
  height: 12px;
  background: rgb(59, 252, 98);
  transform: translate(-50%, -50%) scale(0.5);
  animation: dot-pulse 1.4s infinite;
}

.dot__core {
  width: 8px;
  height: 8px;
  background: rgb(58, 252, 97);
  transform: translate(-50%, -50%);
}

@keyframes dot-pulse {
  0%     { transform: translate(-50%, -50%) scale(0.5); background: rgb(59, 252, 98); }
  21.43% { transform: translate(-50%, -50%) scale(1);   background: rgb(201, 255, 212); }
  50%    { transform: translate(-50%, -50%) scale(1);   background: rgb(201, 255, 212); }
  71.43% { transform: translate(-50%, -50%) scale(0.5); background: rgb(59, 252, 98); }
  100%   { transform: translate(-50%, -50%) scale(0.5); background: rgb(59, 252, 98); }
}

/* ============================================================================
   Content — cards
   ========================================================================== */

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 720px;
  max-width: 100%;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card {
  position: relative;
  background: var(--surface);
  padding: 32px;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: inherit;
  pointer-events: none;
}

.card--solo { border-radius: var(--radius-card); }

.card--head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card--solo {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card--body { border-radius: 0; }
.card--body::after { border-top: 0; }

.card--last { border-radius: 0 0 var(--radius-card) var(--radius-card); }

.card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card__text h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: var(--ink);
}

.card__text p {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

/* ============================================================================
   Rows (experience / education / bar admissions / recommendations)
   ========================================================================== */

.row { display: flex; }
.row--timeline { gap: 16px; align-items: stretch; }

/* Timeline gutter */
.tl {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 9px;
}

.tl--first { padding-top: 8px; }
.tl--rule  { width: 1px; padding-top: 8px; }

.tl__stub {
  width: 1px;
  height: 8px;
  background: var(--border);
}

.tl__dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
}

.tl__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 100%;
  background: var(--icon);
}

.tl__line {
  width: 1px;
  flex: 1 0 0;
  background: var(--border);
}

/* Row body */
/* 631px = the 720px card minus its 32px padding and the 25px timeline gutter.
   The source site keeps that gutter reserved even on rows that have no
   timeline, so every row body is inset from the right by the same amount. */
.item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: none;
  width: 631px;
  max-width: 100%;
  min-width: 0;
}

.item--spaced { padding-bottom: 48px; }

.item__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 0 0;
  min-width: 0;
}

.item__main h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
}

.org {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.rec__name a { transition: color 0.2s ease; }
.rec__name a:hover { color: var(--blue); }

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 16px;
  color: var(--muted);
}

.desc {
  width: 560px;
  max-width: 100%;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.seal { flex: none; width: 64px; height: 64px; object-fit: cover; }
.seal--dc { width: 66px; }

/* ============================================================================
   Pills & chips
   ========================================================================== */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 16px;
  color: var(--muted);
}

.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: inherit;
  pointer-events: none;
}

/* ============================================================================
   Certifications
   ========================================================================== */

.card--certs {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.certrow {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.cert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 0 0;
  min-width: 0;
}

.cert h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink-strong);
}

/* ============================================================================
   Skills
   ========================================================================== */

.card--skills {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.skillgroup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skillgroup h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.only-mobile { display: none; }

/* ============================================================================
   Recommendations
   ========================================================================== */

.card--recs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ============================================================================
   Scroll-appear motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s var(--appear-ease) 0.2s,
    transform 0.3s var(--appear-ease) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot__glow { animation: none; }
}

/* ============================================================================
   Phone breakpoint  (matches the source site: everything below 1200px)
   ========================================================================== */

@media (max-width: 1199px) {

  .nav { width: 200px; max-width: calc(100% - 32px); }
  .nav__links { display: none; }

  .page { padding: 120px 16px 48px; gap: 48px; }

  .hero,
  .content { width: 100%; }

  .item { flex: 1 0 0; width: auto; }

  /* Head/date stack above title on work-experience & bar rows */
  .item__head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item__head--stack .item__main { order: 1; width: 100%; flex: none; }
  .item__head--stack .pill--meta { order: 0; }
  .item__head--stack .seal { order: 1; }

  .desc { width: 100%; }

  .certrow { flex-direction: column; gap: 16px; }

  /* The source site pins this one name block to 137px, so it wraps. */
  .name--narrow { width: 137px; }

  .only-desktop { display: none; }
  .only-mobile  { display: inline; }
}
