/* ============================================================
   Nous Labs — 회사 홈페이지 스타일
   흰 종이 위 잉크. 장식은 괘선과 여백뿐. 색은 제품 아이콘에만 쓴다.
   ============================================================ */

:root{
  --paper:#ffffff;
  --ink:#15141a;          /* 제목·워드마크 */
  --body:#3a3942;         /* 본문 */
  --soft:#8d8b95;         /* 라벨·보조 */
  --faint:#c9c7cd;        /* 비활성 */
  --rule:#e6e4e1;         /* 괘선 */
  --live:#4f9b76;         /* 운영 중 점 */

  --mt:#6b5fd6;           /* 엠티 */
  --party:#e8714c;        /* 파티타임 */

  --text:"Pretendard","Apple SD Gothic Neo",-apple-system,BlinkMacSystemFont,
         "Segoe UI","Malgun Gothic",system-ui,sans-serif;

  --wide:1040px;
  --gutter:clamp(20px,5vw,48px);
  --pad:clamp(72px,11vh,128px);       /* 섹션 상하 여백 */

  --ease:cubic-bezier(.16,.84,.28,1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;background:var(--paper);color:var(--body);
  font-family:var(--text);font-size:17px;font-weight:400;
  line-height:1.85;letter-spacing:-.005em;word-break:keep-all;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
/* 아주 옅은 그레인 — 순백의 평평함을 덜어낸다 */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
main,footer{position:relative;z-index:1}

a{color:inherit;text-decoration:none}
:focus-visible{outline:1.5px solid var(--ink);outline-offset:4px;border-radius:2px}

.shell{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter)}
.rule{height:1px;background:var(--rule)}

/* ── 히어로 ───────────────────────────────────────────── */
.hero{padding:clamp(104px,20vh,208px) 0 clamp(88px,13vh,144px)}
.hero__word{
  margin:0;color:var(--ink);
  font-size:clamp(60px,11.5vw,152px);font-weight:700;
  letter-spacing:-.05em;line-height:.92;
}

/* ── 섹션 공통: 좌 라벨 / 우 내용 ───────────────────── */
.sec{padding:var(--pad) 0}
.sec__in{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.6fr);
  gap:32px clamp(32px,6vw,96px);align-items:start;
}
.sec__label{
  margin:0;padding-top:2px;
  display:flex;gap:14px;align-items:baseline;
  font-size:clamp(16px,1.6vw,18px);font-weight:600;letter-spacing:-.015em;line-height:1.4;
  color:var(--ink);
}
.sec__label b{
  font-weight:500;color:var(--soft);
  font-size:.8em;letter-spacing:.04em;font-variant-numeric:tabular-nums;
}
.sec__body{min-width:0}

/* ── 소개 ─────────────────────────────────────────────── */
.about p{
  margin:0 0 1.4em;font-size:clamp(17px,2vw,19px);line-height:1.9;
}
.about p:last-child{margin-bottom:0}
/* 이름 뜻의 두 단어만 잉크색으로 톤을 올린다 (굵기는 그대로) */
.term{color:var(--ink)}

/* ── 제품 ─────────────────────────────────────────────── */
.products{margin:0;padding:0;list-style:none;border-top:1px solid var(--rule)}
.product{
  display:grid;grid-template-columns:72px minmax(0,1fr) auto;
  gap:8px clamp(20px,3vw,32px);align-items:center;
  padding:clamp(26px,3.5vh,34px) 0;border-bottom:1px solid var(--rule);
}
/* 카드가 링크(<a class="product">)가 되면 호버에서 아이콘이 살짝 뜬다 */
a.product{display:grid;color:inherit}
.product__icon{
  width:72px;height:72px;display:grid;place-items:center;color:#fff;
  clip-path:url(#squircle);
  transition:transform .55s var(--ease);
}
.product__icon svg{width:50%;height:auto;display:block}
a.product:hover .product__icon{transform:translateY(-3px)}
.product__name{margin:0;color:var(--ink);font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.3}
.product__desc{margin:4px 0 0;font-size:15.5px;color:var(--body);line-height:1.6}
.product__meta{
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;
  font-size:13.5px;color:var(--soft);text-align:right;white-space:nowrap;
}
.state{display:inline-flex;align-items:center;gap:7px}
.state::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--faint)}
.state--live::before{background:var(--live)}
.state--live{color:var(--body)}

/* 다음 제품 자리 */
.product--next .product__icon{
  color:var(--faint);font-size:24px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50,2.5 C13,2.5 2.5,13 2.5,50 C2.5,87 13,97.5 50,97.5 C87,97.5 97.5,87 97.5,50 C97.5,13 87,2.5 50,2.5 Z' fill='none' stroke='%23dcdad8' stroke-width='2' stroke-dasharray='6 8'/%3E%3C/svg%3E");
  background-size:100% 100%;clip-path:none;
}
.product--next .product__name{color:var(--soft);font-weight:500}
.product--next .product__desc{color:var(--soft)}

/* ── 연락 ─────────────────────────────────────────────── */
.contact__mail{
  display:inline-block;color:var(--ink);
  font-size:clamp(22px,3.6vw,38px);font-weight:600;letter-spacing:-.03em;line-height:1.2;
  border-bottom:1.5px solid var(--ink);padding-bottom:4px;
  transition:opacity .3s;overflow-wrap:anywhere;
}
.contact__mail:hover{opacity:.65}

/* ── 푸터 ─────────────────────────────────────────────── */
.foot{padding:clamp(36px,5vh,48px) 0 clamp(40px,7vh,64px)}
.foot__in{
  display:flex;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;
  font-size:13.5px;line-height:1.8;color:var(--soft);
  font-variant-numeric:tabular-nums;
}
.foot__right{text-align:right}
.foot a{transition:color .3s}
.foot a:hover{color:var(--ink)}

/* ── 등장 ─────────────────────────────────────────────── */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.rise{animation:rise .9s var(--ease) both}

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width:820px){
  .sec__in{grid-template-columns:1fr;gap:20px}
  .sec__label{padding-top:0}
}
@media (max-width:600px){
  body{font-size:16px}
  :root{--pad:clamp(56px,9vh,80px)}
  .product{grid-template-columns:56px minmax(0,1fr);gap:4px 16px}
  .product__icon{width:56px;height:56px}
  .product__meta{
    grid-column:2;flex-direction:row;align-items:center;gap:16px;
    text-align:left;margin-top:4px;white-space:normal;
  }
  .foot__in{flex-direction:column}
  .foot__right{text-align:left}
}

@media (prefers-reduced-motion:reduce){
  .rise{animation:none}
  .product__icon,.contact__mail,.foot a{transition:none}
}
