:root {
  color-scheme: light dark;
  --ink: #171717;
  --ink-soft: #3a3a3d;
  /* Darkened from #74747a to reach WCAG AA 4.5:1 on white for body text */
  --muted: #66666c;
  /* Slightly stronger muted for small labels (10px eyebrow etc.) */
  --muted-strong: #55555b;
  --line: #e8e8eb;
  --surface: #f7f7f8;
  --surface-blue: #f3f6ff;
  --surface-peach: #fff5f1;
  --white: #ffffff;
  --accent: #f05235;
  /* Darker accent for text usage to lift contrast on white */
  --accent-text: #d13b22;
  --accent-dark: #ce3b22;
  --blue: #4169e1;
  --focus: #2f54c9;
  --danger: #b8322a;
  --shadow-soft: 0 18px 60px rgba(24, 24, 27, 0.07);
  --shadow-card: 0 8px 30px rgba(24, 24, 27, 0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Spacing scale (4/8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

/* Anchor offset so sticky header does not cover scrolled-to sections */
[id] { scroll-margin-top: 96px; }

/* Global keyboard focus visibility */
:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.auth-button:focus-visible { outline-offset: 4px; }

@media (prefers-contrast: more) {
  :root { --muted: #4a4a50; --line: #cccccf; }
  :where(a, button, input, textarea, summary, [tabindex]):focus-visible {
    outline-width: 3px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(232, 232, 235, 0.88);
  backdrop-filter: blur(18px);
}
nav {
  width: min(1160px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  object-position: center;
}
.logo-copy { display: grid; line-height: 1; }
.logo-copy strong { display: none; }
.logo-copy small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); transform: translateY(-1px); }
.nav-links a.active { background: var(--ink); color: var(--white); }

/* Layout */
.home-main, .sub-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.home-main { padding: 24px 0 96px; }
.sub-main { min-height: 62vh; padding: 76px 0 110px; }
.narrow-main { width: min(820px, calc(100% - 48px)); }

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding: clamp(48px, 7vw, 86px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 55%, #fff8f5 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  left: -210px;
  top: -220px;
  border-radius: 50%;
  background: rgba(240, 82, 53, 0.1);
  filter: blur(3px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  right: 31%;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(65, 105, 225, 0.08);
}
.hero-copy, .identity-card { position: relative; z-index: 1; }
.eyebrow { color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
/* On dark/gradient surfaces the lighter accent keeps enough contrast */
.eyebrow.light { color: #ff6a4d; }
.hero h1 {
  max-width: 100%;
  margin: 22px 0 28px;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.08;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* CJK (Japanese) glyphs run wider; nudge the size down a touch and keep line
   breaks at natural phrase boundaries (the <br> in the string) rather than
   mid-word, so the title stays tidy and never overruns the photo column. */
.hero h1:lang(ja) {
  font-size: clamp(38px, 5.1vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.14;
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
.hero h1 span { color: #5f5f65; }
.hero-lead { color: var(--muted); font-size: 16px; }
.hero-lead b { margin-left: 8px; color: var(--ink); font-weight: 600; }
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 28px; }
.text-link { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 8px; color: var(--accent-text); }

/* Profile photo */
.identity-card { border-radius: 22px; }
.photo-card {
  position: relative;
  min-height: 486px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: var(--surface);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.02);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}
.photo-card:hover .profile-photo { transform: scale(1.025); filter: saturate(1) contrast(1.02); }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(15, 15, 16, 0.92) 100%); }
.photo-index {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}
.photo-caption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 31px 28px 26px; }
.identity-label { color: #ffc2b5; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.photo-caption h2 { margin: 5px 0 7px; color: var(--white); font-size: 36px; letter-spacing: -.05em; }
.photo-caption > p:not(.identity-label) { color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.55; }
.identity-tags { margin-top: 17px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.28); }
.identity-tags span { color: rgba(255,255,255,.92); font-size: 9px; font-weight: 800; letter-spacing: .12em; }

/* Shared home sections */
.section {
  padding: 124px 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 54px;
  border-bottom: 1px solid var(--line);
}
.section-index span { color: var(--accent-text); font-family: Georgia, serif; font-size: 13px; }
.section-index p { margin-top: 10px; color: var(--muted-strong); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.section-content { min-width: 0; }
.body-copy { color: var(--muted); font-size: 16px; }
.body-copy p + p { margin-top: var(--space-5); }
.intro-copy { max-width: 790px; }
.body-copy .lead-copy { color: var(--ink); font-size: clamp(28px, 3.5vw, 43px); font-weight: 600; letter-spacing: -.045em; line-height: 1.38; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.section-heading h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; }
.profile-copy { max-width: 710px; margin: 58px 0 68px auto; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.expertise-card {
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.expertise-card:nth-child(2) { background: var(--surface-blue); }
.expertise-card:nth-child(3) { background: var(--surface-peach); }
.expertise-card:hover { transform: translateY(-4px); border-color: #d8d8dc; box-shadow: var(--shadow-card); }
.expertise-card > span { color: var(--accent-text); font-family: Georgia, serif; font-size: 12px; }
.expertise-card h3 { margin: 56px 0 12px; font-size: 20px; letter-spacing: -.02em; }
.expertise-card p { color: var(--muted); font-size: 13px; }

.career-heading { margin-bottom: 58px; }
.career-list { list-style: none; border-top: 1px solid var(--ink); }
.career-item {
  position: relative;
  min-height: 142px;
  padding: 26px 4px;
  display: grid;
  grid-template-columns: 42px 142px minmax(180px, 0.9fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: padding 200ms ease, background 200ms ease;
}
.career-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform 200ms ease; }
.career-item:hover { padding-right: 18px; padding-left: 18px; background: #fcfcfc; }
.career-item:hover::before { transform: scaleY(1); }
.career-no { align-self: start; color: var(--accent-text); font-family: Georgia, serif; font-size: 12px; }
.career-main p { margin-bottom: 5px; color: var(--muted-strong); font-size: 10px; letter-spacing: .04em; }
.career-main h3 { font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.04em; }
.career-role { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

/* Philosophy */
.manifesto {
  position: relative;
  margin-top: 88px;
  padding: clamp(46px, 7vw, 82px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 52px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-blue) 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.manifesto::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: rgba(240,82,53,.09); }
.manifesto-mark { position: relative; z-index: 1; width: 130px; height: 130px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.manifesto-mark img { width: 100%; height: 100%; object-fit: contain; }
.manifesto-copy { position: relative; z-index: 1; }
.manifesto h2 { max-width: 730px; margin: 22px 0 46px; font-size: clamp(34px, 4.5vw, 57px); font-weight: 600; letter-spacing: -.055em; line-height: 1.18; }
.dark-copy { max-width: 720px; color: var(--ink-soft); }
.dark-copy strong { color: var(--ink); font-weight: 700; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; gap: 14px; }
.quick-links a {
  position: relative;
  min-height: 178px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.quick-links a:first-child { background: var(--surface-peach); }
.quick-links a:last-child { background: var(--surface-blue); }
.quick-links a:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-card); }
.quick-links span { color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.quick-links strong { font-size: 23px; }
.quick-links i { position: absolute; right: 30px; top: 27px; color: var(--muted); font-style: normal; font-size: 20px; }

/* Sub pages */
.page-hero { padding-bottom: 50px; border-bottom: 1px solid var(--ink); }
.page-hero.small { padding-bottom: 16px; }
.page-title { margin: 12px 0 10px; font-size: clamp(48px, 8vw, 80px); font-weight: 700; letter-spacing: -.07em; line-height: 1.08; }
.page-sub { color: var(--muted); font-size: 15px; }
.toolbar { margin: var(--space-6) 0 var(--space-5); display: flex; justify-content: space-between; align-items: center; }
.list-label { color: var(--muted-strong); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 20px rgba(240,82,53,.18); }
.btn-light { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); }

.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-item {
  padding: 23px 5px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 180ms ease, background 180ms ease;
}
.post-item:hover { padding-right: 17px; padding-left: 17px; background: var(--surface); }
.post-item h3 { font-size: 17px; letter-spacing: -.02em; }
.post-meta { color: var(--muted); font-size: 11px; }
.card { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.form-card { margin-top: 30px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
input[type="text"], textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
textarea { min-height: 220px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(65,105,225,.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(184,50,42,.14); }
.form-message { display: flex; align-items: center; gap: 7px; min-height: 24px; color: var(--danger); font-size: 12px; }
.form-message:empty { display: none; }
.form-message.is-success { color: #1f7a4d; }
.form-message::before { content: ""; }
.form-message.has-icon::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.form-message.is-success.has-icon::before { content: "✓"; background: #1f7a4d; }
.form-actions { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.loading, .empty { padding: 64px 0; color: var(--muted); text-align: center; font-size: 13px; }
.hidden { display: none !important; }

/* List loading skeleton */
.skeleton-list { list-style: none; border-top: 1px solid var(--line); }
.skeleton-item {
  padding: 23px 5px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.skeleton-line {
  height: 15px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, #ededf0 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
.skeleton-line.title { width: min(62%, 360px); }
.skeleton-line.meta { width: 120px; height: 11px; }
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Error / empty state views */
.state-view {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.state-view .state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-peach);
  color: var(--accent-text);
  font-size: 22px;
  font-weight: 800;
}
.state-view h3 { font-size: 18px; letter-spacing: -.02em; }
.state-view p { max-width: 420px; color: var(--muted); font-size: 13px; }
.state-view .btn { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; }
}
.detail-title { margin-bottom: 12px; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -.05em; line-height: 1.25; }
.detail-content { min-height: 180px; margin-top: 31px; padding-top: 29px; border-top: 1px solid var(--line); white-space: pre-wrap; font-size: 15px; line-height: 1.9; }

/* Footer */
.site-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}
.site-footer > div { display: flex; align-items: center; gap: 10px; color: var(--ink); letter-spacing: .12em; }
.site-footer img { width: 72px; height: 20px; object-fit: cover; object-position: center; }
.site-footer.compact { padding-top: 26px; grid-template-columns: 1fr auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .photo-card { min-height: 570px; }
  .profile-photo { object-position: center 18%; }
  .section { grid-template-columns: 105px 1fr; gap: 32px; }
  .section-heading { grid-template-columns: 1fr; }
  .profile-copy { margin-left: 0; }
  .career-item { grid-template-columns: 40px 1fr; }
  .career-role { grid-column: 2; }
  .manifesto { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { word-break: normal; }
  nav, .home-main, .sub-main, .site-footer { width: min(100% - 28px, 1160px); }
  nav { height: 66px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-copy { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { min-height: 44px; padding: 8px 11px; font-size: 12px; }
  .home-main { padding-top: 12px; padding-bottom: 62px; }
  .sub-main { padding: 47px 0 70px; }
  .hero { min-height: auto; padding: 40px 24px 24px; gap: 42px; border-radius: 20px; }
  .hero h1 { font-size: clamp(39px, 12vw, 55px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .photo-card { min-height: 455px; border-radius: 16px; }
  .profile-photo { object-position: center top; }
  .photo-caption { padding: 26px 22px 22px; }
  .photo-caption h2 { font-size: 32px; }
  .section { padding: 78px 0; grid-template-columns: 1fr; gap: 34px; }
  .section-index { display: flex; gap: 15px; align-items: baseline; }
  .section-index p { margin-top: 0; }
  .body-copy { font-size: 15px; }
  .profile-copy { margin: 42px 0 50px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 210px; }
  .expertise-card h3 { margin-top: 40px; }
  .career-heading { margin-bottom: 40px; }
  .career-item { min-height: 0; padding: 23px 0; grid-template-columns: 30px 1fr; gap: 12px; }
  .career-role { grid-column: 2; }
  .manifesto { margin-top: 54px; padding: 36px 24px; gap: 31px; border-radius: 20px; }
  .manifesto-mark { width: 96px; height: 96px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-links a { min-height: 145px; }
  .page-hero { padding-bottom: 33px; }
  .page-title { font-size: 49px; }
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .card { padding: 24px 18px; }
  .toolbar { gap: 12px; }
  .site-footer, .site-footer.compact { padding: 29px 0 37px; grid-template-columns: 1fr; gap: 11px; }
  .site-footer > p:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Career brand marks */
.career-logo {
  width: 132px;
  height: 68px;
  padding: 8px 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.career-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.career-logo-pulmuone {
  padding: 5px 2px;
}

.career-logo-symbol {
  padding: 5px 28px;
}

.career-logo-code {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

@media (max-width: 1040px) {
  .career-item {
    grid-template-columns: 36px 124px minmax(0, 1fr);
  }

  .career-logo {
    width: 116px;
    height: 62px;
  }

  .career-role {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .career-item {
    grid-template-columns: 25px 86px minmax(0, 1fr);
    gap: 10px;
  }

  .career-logo {
    width: 80px;
    height: 52px;
    padding: 6px 2px;
  }

  .career-logo-symbol {
    padding: 4px 18px;
  }

  .career-logo-code {
    font-size: 16px;
  }

  .career-main h3 {
    font-size: 20px;
  }

  .career-role {
    grid-column: 3;
    font-size: 12px;
  }
}

/* Cognito authentication UI */
[data-auth] { display: none !important; }
[data-auth].auth-visible { display: inline-flex !important; }

.auth-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 5px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

.auth-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  min-height: 40px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.auth-button:hover { background: var(--surface-peach); color: var(--accent-dark); }
.auth-login { background: var(--ink); color: var(--white); }
.auth-login:hover { background: var(--accent); color: var(--white); }
.auth-user { max-width: 150px; overflow: hidden; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.auth-pending { visibility: hidden; }
.auth-pending.auth-ready { visibility: visible; }
.signed-author { margin-bottom: 28px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 16px; background: var(--surface-blue); border-radius: var(--radius-sm); }
.signed-author span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.signed-author strong { font-size: 13px; }
.form-actions button:disabled { opacity: .5; cursor: wait; transform: none; }

.callback-main { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: var(--surface); }
.callback-card { width: min(520px, 100%); padding: 54px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.callback-card img { width: 110px; height: 34px; margin-bottom: 32px; object-fit: cover; object-position: center; }
.callback-card h1 { margin: 14px 0 9px; font-size: 29px; letter-spacing: -.04em; }
.callback-card > p:not(.eyebrow) { margin-bottom: 26px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .auth-user { display: none; }
  .auth-menu { margin-left: 2px; padding-left: 3px; border-left: 0; }
  .auth-button { padding: 7px 8px; font-size: 10px; }
}

@media (max-width: 520px) {
  .auth-login { width: 28px; overflow: hidden; color: transparent; white-space: nowrap; }
  .auth-login::after { content: "↗"; color: var(--white); }
  .callback-card { padding: 38px 22px; }
}

/* Policy, support, and app pages */
.document-main { width: min(1040px, calc(100% - 48px)); }
.document-hero { max-width: 900px; }
.document-hero .page-title { font-size: clamp(46px, 7vw, 74px); }
.legal-notice { margin: 34px 0 18px; padding: 20px 22px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; background: var(--surface-blue); border-radius: var(--radius-sm); }
.legal-notice strong { font-size: 13px; }
.legal-notice p { color: var(--muted); font-size: 13px; }
.policy-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.policy-grid.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.policy-card { position: relative; min-height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.policy-card:nth-child(3n + 2) { background: var(--surface-blue); }
.policy-card:nth-child(3n) { background: var(--surface-peach); }
.policy-card:hover { transform: translateY(-3px); background: var(--white); box-shadow: var(--shadow-card); }
.policy-card > span { position: absolute; top: 25px; left: 28px; color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.policy-card h2 { margin-bottom: 9px; font-size: 21px; letter-spacing: -.03em; }
.policy-card p { max-width: 390px; color: var(--muted); font-size: 13px; }
.policy-card i { position: absolute; top: 22px; right: 27px; color: var(--muted); font-style: normal; }
.document-callout { margin-top: 48px; padding: clamp(28px, 5vw, 48px); background: linear-gradient(135deg, var(--surface), var(--surface-blue)); border: 1px solid var(--line); border-radius: var(--radius-md); }
.document-callout h2 { margin: 9px 0 16px; font-size: clamp(25px, 3.2vw, 38px); letter-spacing: -.04em; }
.document-callout p { max-width: 780px; color: var(--muted); font-size: 14px; }
.document-callout .btn { margin-top: 24px; }
.document-caption { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px !important; }
.document-layout { margin-top: 42px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(38px, 7vw, 78px); align-items: start; }
.document-nav { position: sticky; top: 106px; width: auto; height: auto; margin: 0; display: grid; align-items: stretch; justify-content: stretch; gap: 2px; }
.document-nav a { padding: 8px 10px; color: var(--muted); border-radius: 8px; font-size: 11px; font-weight: 600; text-decoration: none; }
.document-nav a:hover, .document-nav a.active { background: var(--surface); color: var(--ink); }
.document-content { min-width: 0; }
.document-content section { padding: 0 0 48px; }
.document-content section + section { padding-top: 48px; border-top: 1px solid var(--line); }
.document-content h2 { margin-bottom: 18px; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.035em; }
.document-content h3 { margin: 26px 0 12px; font-size: 17px; }
.document-content p, .document-content li { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.document-content p + p { margin-top: 14px; }
.document-content ul, .document-content ol { padding-left: 20px; }
.document-content li + li { margin-top: 7px; }
.document-content a { color: var(--blue); overflow-wrap: anywhere; text-underline-offset: 3px; }
.document-content code { padding: 2px 6px; background: var(--surface); border-radius: 5px; font-size: 12px; }
.document-table-wrap { margin: 12px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.document-content table { width: 100%; min-width: 620px; border-collapse: collapse; }
.document-content th, .document-content td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12px; }
.document-content th { background: var(--surface); color: var(--muted-strong); font-weight: 700; }
.document-content tr:last-child td { border-bottom: 0; }
.support-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support-card { min-height: 230px; padding: 28px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.support-card > span { color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.support-card h2 { margin: 42px 0 10px; font-size: 22px; }
.support-card p { color: var(--muted); font-size: 13px; }
.text-action { margin-top: auto; padding-top: 22px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.faq-list { margin-top: 62px; }
.faq-list > h2 { margin-bottom: 18px; font-size: 28px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 4px; font-size: 14px; font-weight: 700; cursor: pointer; }
.faq-list details p { padding: 0 4px 22px; color: var(--muted); font-size: 13px; }
.step-list { padding: 0 !important; list-style: none; }
.step-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.step-list li + li { margin-top: 22px; }
.step-list li > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface-peach); color: var(--accent-text); border-radius: 50%; font-size: 11px; font-weight: 800; }
.step-list strong { display: block; margin-bottom: 4px; color: var(--ink); }
.app-intro { padding: 74px 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; }
.app-intro h2 { margin-top: 15px; font-size: clamp(32px, 4.5vw, 50px); letter-spacing: -.05em; line-height: 1.2; }
.app-intro > p { color: var(--muted); font-size: 14px; }
.app-placeholder { min-height: 240px; padding: 34px; display: grid; grid-template-columns: 55px 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--surface-blue), var(--surface-peach)); border-radius: var(--radius-lg); }
.app-placeholder > span { align-self: start; color: var(--accent); font-family: Georgia, serif; font-size: 13px; }
.app-placeholder div > p:first-child, .app-placeholder > strong { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.app-placeholder h2 { margin: 8px 0; font-size: 30px; }
.app-placeholder div > p:last-child { color: var(--muted); font-size: 13px; }
.check-list { margin-top: 18px; padding-left: 20px; }
.check-list li { color: var(--ink-soft); font-size: 14px; }
.check-list li + li { margin-top: 8px; }
.footer-legal { grid-column: 1 / -1; width: auto; height: auto; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 7px 18px; border-top: 1px solid var(--line); }
.footer-legal a { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .document-main { width: min(100% - 28px, 1040px); }
  .legal-notice, .document-layout, .app-intro { grid-template-columns: 1fr; gap: 22px; }
  .document-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; }
  .document-nav a { flex: 0 0 auto; }
  .policy-grid, .policy-grid.compact-grid, .support-grid { grid-template-columns: 1fr; }
  .policy-card { min-height: 190px; }
  .document-content section { padding-bottom: 38px; }
  .document-content section + section { padding-top: 38px; }
  .app-intro { padding: 54px 0; }
  .app-placeholder { padding: 26px; grid-template-columns: 36px 1fr; }
  .app-placeholder > strong { grid-column: 2; }
  .footer-legal { margin-top: 8px; }
}

/* ==========================================================================
   Theme system
   - Default tone: white/light.
   - Auto: follows the OS via prefers-color-scheme (unless the visitor picks
     a theme explicitly).
   - Manual: the footer theme toggle sets data-theme="light" | "dark" on
     <html>, which overrides the OS preference and is stored in localStorage.
   The dark token/style set is defined once (%dark rules below) and shared by
   both the OS-dark path and the explicit data-theme="dark" path.
   ========================================================================== */

/* --- Dark tokens: OS dark (only when the visitor has NOT forced light) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f1f4;
    --ink-soft: #c6c6cc;
    --muted: #a1a1a9;
    --muted-strong: #b4b4bc;
    --line: #2a2a2f;
    --surface: #1a1a1d;
    --surface-blue: #182031;
    --surface-peach: #2a1c18;
    --white: #101012;
    --accent-text: #ff7256;
    --focus: #7d96ff;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

/* --- Dark tokens: explicit user choice (wins over OS on any device) --- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f1f4;
  --ink-soft: #c6c6cc;
  --muted: #a1a1a9;
  --muted-strong: #b4b4bc;
  --line: #2a2a2f;
  --surface: #1a1a1d;
  --surface-blue: #182031;
  --surface-peach: #2a1c18;
  --white: #101012;
  --accent-text: #ff7256;
  --focus: #7d96ff;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* --- Explicit light choice: force UA controls back to light --- */
:root[data-theme="light"] { color-scheme: light; }

/* --- Dark hardcoded corrections (things not covered by tokens) ---
   Applied on the OS-dark path AND the explicit-dark path. Kept in sync as a
   single comma-joined selector list so the two paths never drift apart. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: #0c0c0e; }
  :root:not([data-theme="light"]) .site-header { background: rgba(16, 16, 18, 0.86); border-bottom-color: rgba(42, 42, 47, 0.9); }
  :root:not([data-theme="light"]) .nav-links a.active { background: var(--ink); color: #101012; }
  :root:not([data-theme="light"]) .hero { background: linear-gradient(135deg, #141418 0%, #14161f 55%, #1c1614 100%); }
  :root:not([data-theme="light"]) .hero h1 span { color: #9a9aa2; }
  :root:not([data-theme="light"]) .expertise-card:hover { border-color: #3a3a40; }
  :root:not([data-theme="light"]) .career-item:hover { background: #1c1c20; }
  :root:not([data-theme="light"]) .manifesto-mark { background: #16161a; }
  :root:not([data-theme="light"]) .quick-links a:hover { background: #17171b; }
  :root:not([data-theme="light"]) .btn { background: var(--ink); color: #101012; border-color: var(--ink); }
  :root:not([data-theme="light"]) .btn-light { background: var(--ink); color: #101012; }
  :root:not([data-theme="light"]) .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  :root:not([data-theme="light"]) input[type="text"], :root:not([data-theme="light"]) textarea { background: #16161a; }
  :root:not([data-theme="light"]) input:focus, :root:not([data-theme="light"]) textarea:focus { background: #101012; }
  :root:not([data-theme="light"]) .skeleton-line { background: linear-gradient(90deg, #1c1c20 25%, #26262b 37%, #1c1c20 63%); background-size: 400% 100%; }
  :root:not([data-theme="light"]) .auth-login { background: var(--ink); color: #101012; }
  :root:not([data-theme="light"]) .callback-main { background: #0c0c0e; }
  :root:not([data-theme="light"]) .callback-card { background: var(--surface); }
}

:root[data-theme="dark"] body { background: #0c0c0e; }
:root[data-theme="dark"] .site-header { background: rgba(16, 16, 18, 0.86); border-bottom-color: rgba(42, 42, 47, 0.9); }
:root[data-theme="dark"] .nav-links a.active { background: var(--ink); color: #101012; }
:root[data-theme="dark"] .hero { background: linear-gradient(135deg, #141418 0%, #14161f 55%, #1c1614 100%); }
:root[data-theme="dark"] .hero h1 span { color: #9a9aa2; }
:root[data-theme="dark"] .expertise-card:hover { border-color: #3a3a40; }
:root[data-theme="dark"] .career-item:hover { background: #1c1c20; }
:root[data-theme="dark"] .manifesto-mark { background: #16161a; }
:root[data-theme="dark"] .quick-links a:hover { background: #17171b; }
:root[data-theme="dark"] .btn { background: var(--ink); color: #101012; border-color: var(--ink); }
:root[data-theme="dark"] .btn-light { background: var(--ink); color: #101012; }
:root[data-theme="dark"] .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] textarea { background: #16161a; }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] textarea:focus { background: #101012; }
:root[data-theme="dark"] .skeleton-line { background: linear-gradient(90deg, #1c1c20 25%, #26262b 37%, #1c1c20 63%); background-size: 400% 100%; }
:root[data-theme="dark"] .auth-login { background: var(--ink); color: #101012; }
:root[data-theme="dark"] .callback-main { background: #0c0c0e; }
:root[data-theme="dark"] .callback-card { background: var(--surface); }

/* --- Header language + theme pickers ---
   Globe/crescent-triggered dropdown menus mounted in the header nav (rendered
   by js/site-chrome.js). Placed with navigation so visitors find them where
   they expect: easy to discover, clearly labelled, native language names, and
   a compact dropdown rather than a long row of buttons. The language and theme
   pickers share one look (.chrome-picker) so they read as one control group.
   Uses design tokens so both light and dark follow the palette. */
.chrome-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  position: relative;
}
.chrome-picker { position: relative; }

/* Collapsed trigger: pill with icon + current value + caret. Mirrors the nav
   link pill height and the 44px touch target. */
.chrome-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}
.chrome-trigger:hover {
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}
.chrome-picker.is-open .chrome-trigger {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--muted);
}
.chrome-trigger .chrome-ic { flex: 0 0 auto; }
.chrome-trigger-value { line-height: 1; }
.chrome-trigger .chrome-caret {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 180ms ease;
}
.chrome-picker.is-open .chrome-trigger .chrome-caret { transform: rotate(180deg); }

/* Popup menu: card anchored to the trigger's right edge. */
.chrome-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 184px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.chrome-menu[hidden] { display: none; }

.chrome-menu-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.chrome-menu-item:hover { background: var(--surface); color: var(--ink); }
.chrome-menu-item[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.chrome-menu-item .chrome-check {
  opacity: 0;
  color: var(--accent-text);
}
.chrome-menu-item[aria-checked="true"] .chrome-check { opacity: 1; }
.chrome-menu-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted-strong);
}

/* Compact: drop the trigger text label below 520px (globe + caret only). */
@media (max-width: 520px) {
  .chrome-controls { gap: 4px; margin-left: 2px; }
  .chrome-trigger { padding: 8px 10px; gap: 4px; }
  .theme-picker .chrome-trigger-value { display: none; }
}

/* ---------- Language blocks (long documents) ----------
 * Long policy text is written once per language inside
 * <div data-i18n-block="ko|en|ja" lang="..">. i18n.js sets <html lang> in
 * <head> before first paint, so the matching block is shown without a flash.
 * The wrapper uses display: contents so the inner element keeps its layout
 * role (e.g. grid item of .document-layout). Korean is the no-JS default. */
[data-i18n-block] { display: none; }
[data-i18n-block="ko"] { display: contents; }
html[lang="en"] [data-i18n-block="ko"],
html[lang="ja"] [data-i18n-block="ko"] { display: none; }
html[lang="en"] [data-i18n-block="en"],
html[lang="ja"] [data-i18n-block="ja"] { display: contents; }
.translation-note {
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
