:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f7f4ec;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.06);
  --accent: #f5b400;
  --accent-deep: #d99900;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1080px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Questrial', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang='ko'] body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

html[lang='ko'] .site-nav,
html[lang='ko'] .lang-switch {
  font-size: 0.93em;
}

html[lang='ko'] p,
html[lang='ko'] li {
  font-size: 0.91em;
  line-height: 1.82;
}

html[lang='ko'] .hero h1,
html[lang='ko'] .page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

html[lang='ko'] .section-heading h2,
html[lang='ko'] .content-grid h2,
html[lang='ko'] .service-card h2,
html[lang='ko'] .contact-panel h2 {
  font-size: clamp(1.48rem, 2.45vw, 2.04rem);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

html[lang='ko'] .info-card h3,
html[lang='ko'] .workflow-examples h3 {
  font-size: 0.96em;
  font-weight: 700;
}

html[lang='ko'] .hero-text,
html[lang='ko'] .page-intro {
  max-width: 58ch;
}

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

p,
li {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

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

ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 30;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.lang-switch a {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a.is-active {
  color: var(--text);
}

.brand-logo {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a {
  padding: 10px 0;
  position: relative;
  transition: color 200ms var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
  font-weight: 600;
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-home {
  min-height: 0;
  padding-top: 96px;
}

.page-hero {
  padding: 96px 0 36px;
  max-width: 920px;
}

.eyebrow,
.section-kicker,
.hero-card-label,
.pillar-number {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.hero-card-tagline,
.pillar-number {
  color: var(--accent-deep);
}

h1,
.section-heading h2,
.content-grid h2,
.service-card h2,
.contact-panel h2 {
  margin: 12px 0 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.hero-text,
.page-intro {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 300ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.button-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 29, 31, 0.12);
}

.button-primary:hover {
  box-shadow: 0 8px 32px rgba(29, 29, 31, 0.2);
}

.button-secondary {
  background: transparent;
  border: 1.5px solid rgba(29, 29, 31, 0.14);
}

.button-secondary:hover {
  border-color: rgba(29, 29, 31, 0.3);
  background: rgba(29, 29, 31, 0.02);
}

.hero-card,
.info-card,
.service-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(29, 29, 31, 0.05);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.info-card:hover,
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.hero-card {
  padding: 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.hero-icon {
  width: min(68%, 280px);
  margin: 0 auto;
}

.hero-card-image {
  width: min(100%, 360px);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
}

.hero-card-copy {
  text-align: center;
}

.hero-card-label {
  color: var(--text);
}

.hero-card-tagline {
  margin-top: 8px;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 96px 0;
}

.compact-top {
  padding-top: 32px;
}

.section-heading {
  max-width: 920px;
}

.section-heading.narrow {
  max-width: 860px;
}

.section-heading h2,
.content-grid h2,
.service-card h2,
.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.section-highlight {
  background: rgba(29, 29, 31, 0.018);
  border: 1px solid rgba(29, 29, 31, 0.04);
  border-radius: var(--radius-xl);
  padding-inline: 40px;
}

.feature-grid,
.content-grid,
.contact-layout {
  display: grid;
  gap: 24px;
}

.feature-grid {
  margin-top: 28px;
}

.notes-archive-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.notes-archive-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up,
.content-grid,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.contact-panel {
  padding: 32px;
}

.info-card h3,
.service-card h2,
.contact-panel h2 {
  margin-bottom: 12px;
}

.info-card.soft {
  background: var(--surface-soft);
  box-shadow: none;
  border-color: transparent;
}

.info-card.soft:hover {
  background: rgba(246, 242, 232, 0.7);
}

.note-card {
  padding: 0;
  overflow: hidden;
}

.note-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 32px;
  text-decoration: none;
  transition: transform 400ms var(--ease-out), background-color 400ms var(--ease-out);
}

.note-card-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.4);
}

.note-card-link h3 {
  margin: 0;
}

.note-meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.pagination-bar {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-chip {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  font-weight: 700;
}

.page-chip.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.spaced {
  margin-top: 18px;
}

.service-stack {
  display: grid;
  gap: 20px;
}

.workflow-examples {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.workflow-examples h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.service-card p + ul {
  margin-top: 16px;
}

.contact-panel-dark {
  background: var(--text);
  color: #fff;
}

.contact-panel-dark p,
.contact-panel-dark .section-kicker,
.contact-panel-dark li {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel-dark .button-primary {
  margin-top: 22px;
  background: var(--accent);
  color: var(--text);
}

.plain-list {
  padding-left: 18px;
}

.site-footer {
  padding: 48px 0 64px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--muted);
}

.site-footer-detailed {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.6;
}

.footer-details {
  display: grid;
  gap: 4px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.site-footer strong {
  color: var(--muted);
  font-weight: 600;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .header-left {
    width: auto;
    flex: 1;
  }

  .hero,
  .three-up,
  .two-up,
  .content-grid,
  .contact-layout,
  .notes-archive-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    flex-wrap: wrap;
  }

  .header-left {
    flex: 1;
    min-width: 0;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.04);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .section,
  .hero,
  .page-hero {
    padding-block: 56px;
  }

  .section-highlight,
  .hero-card,
  .info-card,
  .service-card,
  .contact-panel {
    padding: 22px;
  }

  .brand-logo {
    width: 190px;
  }
}
