/* =========================================================
   ANIMO — brand site (v4 · 2026-08-11)
   화이트 · 잉크 · 딥 그린 하나. 산세리프(Pretendard) 단일 서체.
   장식 없음 — 여백과 위계가 구분한다. 각주·마이크로 카피 금지,
   부연이 필요하면 본문 크기의 완전한 문장으로 쓴다.
   1 tokens · 2 base · 3 header · 4 board · 5 sections
   6 components · 7 sub pages · 8 footer · 9 motion · 10 responsive
   ========================================================= */

/* ---------- 1 tokens ---------- */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #111311;
  --line: #e7e7e3;
  --muted: #5d635e;
  --soft: #f5f5f2;
  --green: #24402f;        /* 유일한 포인트 컬러 */
  --green-block: #1d3427;  /* 잉크 블록(수달 도판) */
  --green-pale: #eef1ec;   /* 연한 밴드(Wear no one) */
  --green-soft: #9fc4a8;   /* 다크 위 포인트 */

  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 60px);
  --pad-y: clamp(96px, 12vw, 200px);

  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 2 base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

::selection {
  background: var(--green);
  color: #fff;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.lede {
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
}

.link {
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.link:hover {
  color: var(--green);
  border-color: var(--green);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- 3 header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 var(--pad-x);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.brand svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 13.5px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .shop {
  color: var(--green);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle-bars {
  top: 19px;
}

.nav-toggle-bars::before {
  left: 0;
  right: 0;
  top: -7px;
}

.nav-toggle-bars::after {
  left: 0;
  right: 0;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 62px 0 0;
  z-index: 40;
  background: var(--bg);
  padding: 28px var(--pad-x);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  font-size: 21px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 4 board (홈 히어로) ---------- */

.board {
  padding: clamp(64px, 8vw, 120px) 0 0;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
}

.board h1 {
  font-weight: 650;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.36;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.board-title {
  font-weight: 600;
  font-size: 16px;
  margin: clamp(26px, 3.5vw, 44px) 0 0;
}

.board-status {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  margin: 16px 0 0;
  max-width: 44ch;
}

.board-visual {
  margin: 0;
}

.board-visual .media {
  aspect-ratio: 4 / 5;
}

.board-visual figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--green);
}

.counter-row {
  padding: clamp(14px, 2vw, 24px) 0 0;
}

.board-grid .counter {
  font-size: clamp(48px, 6.8vw, 92px);
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 0.045em;
  font-weight: 600;
  font-size: clamp(60px, 11.5vw, 148px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.counter .won {
  font-size: 0.44em;
  color: var(--muted);
  margin-right: 0.2em;
  font-weight: 500;
}

.counter .sep {
  color: var(--line);
  font-size: 0.8em;
}

.counter .cell {
  position: relative;
  width: 0.6em;
  height: 1.06em;
  overflow: hidden;
}

.counter .col {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transition: transform 0.95s var(--ease);
}

.counter .col span {
  display: block;
  height: 1.06em;
  line-height: 1.06;
  text-align: center;
}

.board-line {
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
}

.board-stats {
  display: flex;
  gap: clamp(24px, 4.5vw, 72px);
  flex-wrap: wrap;
  margin-top: clamp(32px, 4.5vw, 54px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.stat b {
  display: block;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.board-links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- 5 sections ---------- */

section.block {
  padding: var(--pad-y) 0 0;
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.head-row .n {
  color: var(--muted);
  font-size: 14px;
}

/* 루프 4단계 */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
}

.loop-step {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.loop-step h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 8px;
}

.loop-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* 참여 카드 — 보더리스 */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.4vw, 56px);
}

.jcard .media {
  aspect-ratio: 4 / 3;
}

.jcard h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  margin: 22px 0 10px;
}

.jcard .when {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}

.jcard p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

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

/* 그린 블록 — 도판 */
.plate {
  background: var(--green-block);
  color: #f2f4ef;
  margin-top: var(--pad-y);
}

.plate .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding-top: clamp(76px, 9vw, 140px);
  padding-bottom: clamp(76px, 9vw, 140px);
}

.plate-text {
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.plate-text em {
  font-style: normal;
  color: var(--green-soft);
}

.plate p {
  color: #c2cfc2;
  max-width: 46ch;
  margin: 0 0 14px;
  font-size: 15px;
}

.plate .status {
  color: #8fa892;
  font-size: 14.5px;
  margin: 26px 0 0;
}

.plate figure {
  margin: 0;
}

.plate figcaption {
  color: #8fa892;
  font-size: 13.5px;
  margin-top: 12px;
}

/* 기록 사진 */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
}

.notes-grid figure {
  margin: 0;
}

.notes-grid .media {
  aspect-ratio: 3 / 4;
}

.notes-grid figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}

.notes-grid figcaption b {
  color: var(--ink);
  font-weight: 600;
}

/* 약속 · 항목 리스트 */
.pledge-list {
  border-top: 1px solid var(--ink);
}

.pledge-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pledge-item h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
}

.pledge-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* 원장 표 */
table.std {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border-top: 1px solid var(--ink);
}

table.std th {
  font-weight: 600;
  text-align: left;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

table.std td {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px 16px 0;
  color: var(--muted);
}

table.std td.amt {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

table.std td.amt.plus {
  color: var(--green);
}

.after {
  margin-top: 22px;
  color: var(--muted);
  max-width: 56ch;
}

.empty-note {
  border-top: 1px solid var(--ink);
  padding: 30px 0 0;
  color: var(--muted);
  max-width: 56ch;
}

/* 제품 */
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
}

.product-grid .media {
  aspect-ratio: 4 / 3;
}

.spec-list {
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.spec-list li span:first-child {
  color: var(--muted);
}

.spec-list li span:last-child {
  text-align: right;
  font-weight: 500;
}

.price-line {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.price-line span {
  color: var(--green);
}

/* 브랜드 밴드 */
.brand-band {
  background: var(--green-pale);
  margin-top: var(--pad-y);
}

.brand-band .wrap {
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
}

.brand-band .wear {
  font-weight: 650;
  font-size: clamp(44px, 8.5vw, 112px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 30px;
}

.brand-band .wear em {
  font-style: normal;
  color: var(--green);
}

.brand-band p {
  max-width: 54ch;
  color: var(--muted);
  margin: 0;
}

/* 컨택트 */
.contact {
  padding-bottom: var(--pad-y);
}

.contact form {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin-top: 30px;
  max-width: 480px;
}

.contact input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 10px 2px;
  font-size: 15.5px;
  font-family: var(--sans);
  color: var(--ink);
  border-radius: 0;
}

.contact input:focus {
  outline: 0;
  border-color: var(--green);
}

.contact input::placeholder {
  color: var(--muted);
}

.contact input[aria-invalid="true"] {
  border-color: #b0490f;
}

.contact button {
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  color: var(--ink);
  transition: color 0.3s, border-color 0.3s;
}

.contact button:hover {
  color: var(--green);
  border-color: var(--green);
}

.form-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  min-height: 1.5em;
}

.form-note a {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

/* ---------- 7 sub pages ---------- */

.page-hero {
  padding: clamp(80px, 10vw, 150px) 0 0;
}

.page-hero h1 {
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.page-hero .lede {
  max-width: 56ch;
}

.kv-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.kv-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) 1.8fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.kv-list dt {
  color: var(--muted);
  font-size: 14px;
}

.kv-list dd {
  margin: 0;
  font-size: 14.5px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.grid-3 h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 8px;
}

.grid-3 > div {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.grid-3 p,
.grid-3 li {
  color: var(--muted);
  font-size: 14px;
}

.grid-3 ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-3 li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* 404 */
.notfound {
  padding: clamp(120px, 16vw, 240px) 0;
}

.notfound h1 {
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

/* ---------- 8 footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--pad-y);
  padding: 36px var(--pad-x) 56px;
  font-size: 13.5px;
  color: var(--muted);
}

.contact + .site-footer {
  margin-top: 0;
}

.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  max-width: 60ch;
  line-height: 1.75;
}

.site-footer b {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-footer a {
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}

.site-footer a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 9 motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 10 responsive ---------- */

@media (max-width: 900px) {
  .loop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .join-grid,
  .product-grid,
  .notes-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .plate .wrap {
    grid-template-columns: 1fr;
  }

  .pledge-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-visual .media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 520px) {
  .contact form {
    flex-direction: column;
    align-items: stretch;
  }

  .contact button {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .counter .col {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
