:root {
  --bg: #f4f4f0;
  --surface: #ffffff;
  --ink: #101010;
  --muted: #686864;
  --line: #101010;
  --primary: #f1f333;
  --accent: #ff90e8;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

figure,
p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.site-container-wide {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 11px 16px;
  transform: translateY(-150%);
  border: 2px solid var(--ink);
  background: var(--primary);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 0;
}

.icon-button > svg {
  display: block;
  width: 21px;
  height: 21px;
  margin: 0;
}

.site-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--surface);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.site-button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-button--primary {
  background: var(--primary);
  color: var(--ink);
}

.site-button--accent {
  background: var(--accent);
  color: var(--ink);
}

.site-button--light {
  background: var(--surface);
  color: var(--ink);
}

.site-button--ghost {
  background: transparent;
  color: inherit;
}

.nav-toggle {
  display: none;
}

[data-nav-panel] {
  display: none;
}

.demo-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-label {
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.form-field textarea {
  min-height: 138px;
  resize: vertical;
}

.form-consent {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.form-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.demo-notice {
  padding: 14px 24px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.demo-metric-note {
  font-size: 12px;
  line-height: 1.6;
}

.back-to-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
}

.back-to-top > svg {
  width: 17px;
  height: 17px;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.project-image img {
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.project-link:hover .project-image img,
.project-link:focus-visible .project-image img {
  transform: scale(1.035);
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-container,
  .site-container-wide {
    width: min(100% - 32px, 1200px);
  }

  .nav-toggle {
    display: inline-grid;
  }

  [data-nav-panel] {
    position: fixed;
    z-index: 90;
    inset: var(--header-height) 0 auto;
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
    border-bottom: 3px solid var(--line);
    background: var(--bg);
  }

  [data-nav-panel][data-open="true"] {
    display: grid;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-container,
  .site-container-wide {
    width: min(100% - 28px, 1200px);
  }

  .site-button {
    min-height: 50px;
  }

  .demo-notice {
    padding-inline: 14px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  [data-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .nav-toggle,
  .icon-button {
    display: none !important;
  }
}
