/* LayerSome 홈페이지 — Brand Guidelines v1.0 기준
   색: Carbon(주) · Print Bed(배경) · Filament(강조, "지금")  |  모서리는 모두 직각, 그림자 없음 */
:root {
  --ink: #1D242C; --ink-2: #27303A;
  --acc: #F37A1F; --acc-d: #CC661A;
  --paper: #F7F6F3; --tile: #ECEAE5; --white: #fff;
  --slate: #6B7480; --slate-l: #A9B0B8; --on-dark: #C8CCD1;
  --line: rgba(29, 36, 44, .12); --line-s: rgba(29, 36, 44, .3); --line-d: rgba(247, 246, 243, .16);
  --sans: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif;
  --display: "Sora", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.7; background: var(--paper); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── 머리 ───────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-d); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a { font-size: 14.5px; font-weight: 500; padding: 8px 14px; color: var(--slate-l); border-bottom: 2px solid transparent; transition: color .2s; white-space: nowrap; }
.menu a:hover { color: var(--paper); }
.menu a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--acc); }
.header .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* ── 버튼 · 링크 ─────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.btn-acc:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-s); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn-ghost { color: var(--paper); border-color: rgba(247, 246, 243, .4); }
.on-dark .btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.link { font-weight: 500; border-bottom: 1px solid var(--line-s); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--acc-d); border-color: var(--acc); }

/* ── 글자 ───────────────────────────────── */
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.eyebrow strong { color: var(--acc-d); font-weight: 500; }
.on-dark .eyebrow { color: var(--slate-l); }
.on-dark .eyebrow strong { color: var(--acc); }
.hero h1, .h1 { font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(40px, 6.2vw, 82px); }
.h1 { font-size: clamp(32px, 4.8vw, 60px); }
.h2 { font-weight: 700; font-size: clamp(27px, 3.5vw, 44px); line-height: 1.25; letter-spacing: -.02em; }
/* 제목 강조: ** 로 감싼 낱말. 어두운 바탕에서는 오렌지 글자, 밝은 바탕에서는 오렌지 밑줄 */
.h2 strong { font-weight: 700; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: .11em; text-underline-offset: .16em; }
.on-dark h1 strong, .on-dark h2 strong { color: var(--acc); font-weight: 700; text-decoration: none; }
.lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; color: var(--slate); max-width: 640px; margin-top: 24px; }
.body { color: var(--slate); max-width: 680px; margin-top: 14px; }
.on-dark .lead, .on-dark .body { color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.muted { color: var(--slate); }

/* ── 홈 첫 화면 ──────────────────────────── */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-cube { justify-self: center; width: min(100%, 330px); }
.hero-cube svg { width: 100%; height: auto; overflow: visible; }
.cube .slab { opacity: 0; transform: translateY(-30px); animation: slab-in .7s var(--ease) forwards; }
.cube .s1 { animation-delay: .25s; } .cube .s2 { animation-delay: .5s; } .cube .s3 { animation-delay: .75s; } .cube .s4 { animation-delay: 1s; } .cube .s5 { animation-delay: 1.35s; }
.cube .now { animation: now-pulse 2.8s ease-in-out 2.6s infinite; }
.cube .wire { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wire-in 1s ease forwards 2s; }
@keyframes slab-in { to { opacity: 1; transform: none; } }
@keyframes wire-in { to { stroke-dashoffset: 0; } }
@keyframes now-pulse { 50% { filter: brightness(1.14); } }

/* ── 하위 페이지 첫 화면 ─────────────────── */
.page-hero { background: var(--ink); color: var(--paper); padding: 88px 0 84px; }

/* ── 구역 ───────────────────────────────── */
.section { padding: 96px 0; }
.section-tint { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }

/* 세 가지 일 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); margin-top: 40px; }
.section-tint .tiles { background: var(--paper); }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px 32px 32px; border-left: 1px solid var(--line); }
.tile:first-child { border-left: 0; }
.tile::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--acc); transition: width .4s var(--ease); }
.tile:hover::before { width: 100%; }
.tile .no { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.tile .no strong { color: var(--acc-d); font-weight: 500; }
.tile h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.tile p { color: var(--slate); }
.tile .go { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 15px; transition: color .2s; }
.tile .go:hover, .tile:hover .go { color: var(--acc-d); }

/* 선으로 나눈 카드 묶음 */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); padding: 28px 26px; }
.section-tint .card { background: var(--white); }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }
.card .icon { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

/* 포트폴리오 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: border-color .25s; }
.section-tint .work { background: var(--paper); }
.work:hover { border-color: var(--ink); }
.work[hidden] { display: none; }
.work-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); border-bottom: 1px solid var(--line); }
.work-cover.square { aspect-ratio: 1; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover .work-cover img { transform: scale(1.03); }
.cover-art { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--ink); color: var(--paper); }
.cover-art strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.2; }
.cover-art span, .cover-art small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; margin-top: 8px; opacity: .72; }
.cover-art.light { background: var(--tile); color: var(--ink); }
.cover-art.warm { background: var(--acc); color: var(--ink); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--slate); background: var(--tile); }
.work-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 22px 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tags span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--slate); border: 1px solid var(--line); padding: 2px 8px; }
.work-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.work-body p { color: var(--slate); font-size: 14.5px; line-height: 1.65; }
.work-url { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.work-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.work-links .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.go-sm { margin-top: auto; padding-top: 10px; font-weight: 500; font-size: 14.5px; transition: color .2s; }
.go-sm:hover { color: var(--acc-d); }
.filters { display: flex; flex-wrap: wrap; width: fit-content; border: 1px solid var(--line); margin-bottom: 24px; }
.filters button { background: transparent; border: 0; border-left: 1px solid var(--line); padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--slate); cursor: pointer; }
.filters button:first-child { border-left: 0; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 진행 과정 */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.process li { border-top: 2px solid var(--ink); padding-top: 18px; }
.process li:last-child { border-top-color: var(--acc); }
.process li span { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--acc-d); margin-bottom: 10px; }
.process strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.process p { color: var(--slate); font-size: 14.5px; }

/* 연혁 */
.timeline { display: grid; gap: 22px; margin: 36px 0 0 5px; border-left: 1px solid var(--line-s); }
.timeline li { display: flex; gap: 18px; align-items: flex-start; margin-left: -6px; }
.tl-dot { flex: none; width: 11px; height: 11px; margin-top: 8px; background: var(--ink); }
.tl-now { background: var(--acc); }
.timeline strong { display: block; font-weight: 700; }
.timeline p { color: var(--slate); font-size: 14.5px; }

/* 이름의 뜻 */
.wordplay { font-family: var(--display); font-weight: 300; font-size: clamp(46px, 6.4vw, 86px); line-height: 1.04; letter-spacing: -.045em; white-space: nowrap; }
.wordplay b { font-weight: 700; }
.wordplay i { font-style: normal; color: var(--slate); }
.bar { width: 96px; height: 8px; background: var(--acc); margin-top: 30px; }
.meaning { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.meaning-mark { background: var(--paper); border: 1px solid var(--line); padding: 44px; }
.meaning-mark img { width: 100%; height: auto; }
.meaning-list li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.meaning-list li:last-child { border-bottom: 1px solid var(--line); }
.meaning-list strong { font-weight: 700; }
.meaning-list li:nth-child(2) strong { color: var(--acc-d); }
.meaning-list p { color: var(--slate); font-size: 15px; }

/* 어두운 안내 상자 */
.panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 56px; background: var(--ink); color: var(--paper); }
.panel .h2 { font-size: clamp(26px, 3vw, 38px); }
.panel-list { display: grid; align-content: center; }
.panel-list li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-d); font-size: 15px; }
.panel-list li:last-child { border-bottom: 1px solid var(--line-d); }
.panel-list span { flex: none; width: 64px; padding-top: 3px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--acc); }

/* ── 연락 ───────────────────────────────── */
.contact { background: var(--ink); color: var(--paper); padding: 96px 0 88px; }
.contact h2 { font-weight: 700; font-size: clamp(27px, 3.7vw, 46px); line-height: 1.28; letter-spacing: -.02em; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); margin-top: 40px; }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; padding: 26px 26px 22px; background: var(--ink); transition: background .2s; }
.contact-card:hover { background: var(--ink-2); }
.contact-card .lbl { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--slate-l); }
.contact-card .val { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); letter-spacing: -.01em; }
.contact-card .arr { color: var(--acc); font-size: 20px; transition: transform .2s; }
.contact-card:hover .arr { transform: translateX(4px); }
.contact-note { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--slate-l); }

/* 문의 폼 (site.js 가 그립니다) */
.inquiry { margin-top: 28px; }
.inquiry:empty { display: none; }
.inquiry-form { display: grid; gap: 18px; padding: 36px; background: var(--paper); color: var(--ink); }
.inquiry-head h3, .inquiry-done h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.inquiry-head p, .inquiry-done p { color: var(--slate); font-size: 14.5px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--slate); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 12px 14px; background: var(--white); border: 1px solid var(--line-s); border-radius: 0; font-size: 15px; line-height: 1.5; }
.fld textarea { resize: vertical; min-height: 130px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: var(--acc); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--acc); }
.consent p { color: var(--slate); font-size: 13px; line-height: 1.6; margin-top: 6px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--slate); }
.form-status.error { color: #D8412F; }

/* ── 바닥 ───────────────────────────────── */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-d); padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-top img { height: 34px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--slate-l); }
.foot-nav a:hover { color: var(--paper); }
.bizinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; padding: 28px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.bizinfo .wide { grid-column: span 2; }
.bizinfo dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--slate-l); margin-bottom: 4px; }
.bizinfo dd { font-size: 14px; }
.copy-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--slate-l); }

/* ── 스크롤 등장 ─────────────────────────── */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* ── 화면 크기 ───────────────────────────── */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-cube { width: 230px; justify-self: start; order: -1; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .tile { border-left: 0; border-top: 1px solid var(--line); }
  .tile:first-child { border-top: 0; }
  .two-col, .panel { grid-template-columns: 1fr; gap: 36px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .meaning { grid-template-columns: 200px 1fr; gap: 36px; }
  .bizinfo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .header-in { flex-wrap: wrap; gap: 0 16px; padding-top: 12px; }
  .header .btn { margin-left: auto; }
  .menu { order: 3; width: calc(100% + 48px); margin: 10px -24px 0; padding: 0 12px; overflow-x: auto; border-top: 1px solid var(--line-d); scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { padding: 11px 12px 9px; }
  .brand img { height: 26px; }
  .section, .contact { padding: 68px 0; }
  .page-hero { padding: 64px 0 60px; }
  .hero-cube { width: 170px; }
  .panel { padding: 36px 24px; }
  .meaning { grid-template-columns: 1fr; }
  .meaning-mark { width: 180px; padding: 30px; }
  .meaning-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .works, .grid-2, .grid-3, .grid-4, .process, .form-row { grid-template-columns: 1fr; }
  .inquiry-form { padding: 24px 20px; }
  .actions .btn { flex: 1 1 auto; }
  .bizinfo .wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cube .slab { opacity: 1; transform: none; }
  .cube .wire { stroke-dashoffset: 0; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
