/* ============================
   HEDVION — Brand Tokens
   ============================ */
/* S-Core Dream — 9 weights (한국어 폰트, jsdelivr CDN) */
@font-face { font-family: 'S-Core Dream'; font-weight: 100; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-1Thin.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 200; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-2ExtraLight.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 300; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 400; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 500; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-5Medium.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 600; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-7ExtraBold.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 800; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-8Heavy.woff') format('woff'); }
@font-face { font-family: 'S-Core Dream'; font-weight: 900; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-9Black.woff') format('woff'); }

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ede2;
  --bg-dark: #1d1815;
  --ink: #2d2422;
  --ink-soft: #5a4f4a;
  --line: #e6dfd2;
  --accent: #a87340;
  --accent-2: #c08654;
  --accent-glow: rgba(168, 115, 64, 0.18);
  --shadow-sm: 0 1px 2px rgba(45, 36, 34, 0.06);
  --shadow-md: 0 6px 24px rgba(45, 36, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(45, 36, 34, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --font-sans: 'S-Core Dream', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'tnum';
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ===== Layout ===== */
.container {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; }

/* ===== Accent helpers ===== */
.accent { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block; vertical-align: middle;
  width: 22px; height: 1px; background: var(--accent);
  margin-right: 10px;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 243, 0.92);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 116px;
}
.nav__logo {
  display: flex; align-items: center;
}
.nav__logo--icon img {
  width: 96px;
  height: 96px;
  display: block;
  transition: transform .22s ease;
}
.nav__logo--icon:hover img { transform: rotate(-6deg) scale(1.06); }

/* nav variants — 워드마크 SVG (margin clip 으로 내부 여백 제거) */
.nav__logo--wordmark img {
  width: auto; height: 78px;
  margin: -22px -18px;
  transition: transform .22s ease;
}
/* nav variants — 풀로고 (고슴도치+텍스트) */
.nav__logo--full img {
  width: auto; height: 96px;
  margin: -16px -10px;
  transition: transform .22s ease;
}
/* nav variants — trim PNG (흰여백 제거된 풀로고, 진짜 빵빵) */
.nav__logo--trim img {
  width: auto; height: 110px;
  margin: 0;
  transition: transform .22s ease;
  image-rendering: -webkit-optimize-contrast;
}
.nav__logo--trim:hover img { transform: rotate(-3deg) scale(1.04); }

.nav__menu {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 15px; color: var(--ink-soft); font-weight: 500;
}
.nav__menu a { position: relative; padding: 6px 0; text-decoration: none; }
.nav__menu a::after {
  content:''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 9px 18px; font-size: 14px; }

.nav__burger {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav__burger span:nth-child(1) { top: 12px; }
.nav__burger span:nth-child(2) { top: 17px; }
.nav__burger span:nth-child(3) { top: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 20px rgba(45, 36, 34, 0.18);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--accent); }
.btn--ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--text {
  padding: 14px 4px; color: var(--ink-soft);
}
.btn--text:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(60px, 11vw, 130px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -10% -5% 0 -5%; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(168,115,64,0.08), transparent 60%);
}
.hero__inner {
  display: flex; flex-direction: column; gap: 32px;
  position: relative;
}
.hero__title {
  font-size: clamp(56px, 12vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--ink);
}
.hero__line { display: block; }
.hero__line .accent {
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line .accent::after { display: none; }

.hero__sub {
  display: block;
  margin-top: 22px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.32;
}

.hero__desc {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.7;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

.hero__meta {
  display: flex; gap: clamp(28px, 5vw, 56px);
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__meta div {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.hero__meta div::before {
  content: ''; position: absolute; left: -14px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.hero__meta strong {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__meta span {
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em;
}

.hero__mascot {
  position: absolute;
  right: clamp(-20px, -1vw, 20px);
  top: 8%;
  width: clamp(200px, 32vw, 420px);
  opacity: 0.22;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: -1;
}
.hero__mascot img { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 56px; max-width: 720px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}
.section__lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.section__body p + p { margin-top: 16px; }
.section__body p { color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.section__body strong { color: var(--ink); font-weight: 600; }

.values {
  list-style: none;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.values li {
  position: relative;
  padding: 24px 24px 24px 80px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.values li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,115,64,0.4);
}
.values__num {
  position: absolute; left: 22px; top: 22px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em;
}
.values h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.02em; }
.values p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ===== Team ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.team__grid--full {
  max-width: 1080px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}
.team-card__bio + .team-card__bio {
  margin-top: 10px;
}
@media (max-width: 860px) {
  .team__grid--full { grid-template-columns: 1fr; }
}
.team-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration: none;
  color: var(--ink);
  min-height: 92px;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 115, 64, 0.45);
  box-shadow: var(--shadow-sm);
}
.team-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fbf8f3;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.team-card__info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.team-card__info strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.team-card__info span {
  font-size: 13px;
  color: var(--ink-soft);
}
.team-card__icon {
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: color .22s ease, transform .22s ease;
}
.team-card:hover .team-card__icon {
  color: var(--accent);
  transform: translateX(2px);
}

/* ===== mings 전용 화려 효과 (놀리는 용) ===== */
.team-card--shine {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(168, 115, 64, 0.18) 0%,
    rgba(255, 215, 130, 0.10) 35%,
    rgba(192, 134, 84, 0.16) 65%,
    rgba(168, 115, 64, 0.18) 100%) !important;
  border: 1.5px solid rgba(192, 134, 84, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(192, 134, 84, 0.15),
    0 8px 28px rgba(168, 115, 64, 0.18),
    0 0 60px -10px rgba(255, 215, 130, 0.4) !important;
  animation: shine-float 3.2s ease-in-out infinite alternate;
}
.team-card--shine::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 235, 180, 0.55) 50%,
    transparent 65%,
    transparent 100%);
  background-size: 250% 100%;
  animation: shine-sweep 2.6s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.team-card--shine > * { position: relative; z-index: 2; }
.team-card--shine:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow:
    0 0 0 2px rgba(192, 134, 84, 0.4),
    0 16px 40px rgba(168, 115, 64, 0.3),
    0 0 80px -10px rgba(255, 215, 130, 0.6) !important;
}

@keyframes shine-sweep {
  0% { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
@keyframes shine-float {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.team-card__avatar--shine {
  background: conic-gradient(from 0deg,
    #a87340, #c08654, #ffe082, #d49866,
    #c08654, #ffd966, #a87340) !important;
  background-size: 200% 200% !important;
  animation: avatar-shine 3s linear infinite;
  box-shadow:
    0 0 0 2px rgba(255, 235, 180, 0.5),
    0 0 20px rgba(255, 215, 130, 0.6) !important;
  position: relative;
}
@keyframes avatar-shine {
  0% { background-position: 0% 0%; filter: hue-rotate(0deg); }
  100% { background-position: 100% 100%; filter: hue-rotate(20deg); }
}

.team-card__crown {
  position: absolute;
  top: -10px; right: 16px;
  font-size: 18px;
  z-index: 3;
  animation: crown-bounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 130, 0.6));
}
@keyframes crown-bounce {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-3px); }
}

.team-card__sparkle {
  position: absolute;
  font-size: 14px;
  color: var(--accent-2);
  pointer-events: none;
  z-index: 2;
  animation: sparkle-twinkle 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 215, 130, 0.8));
}
.team-card__sparkle--1 { top: 8px; left: 14%; animation-delay: 0s; font-size: 12px; }
.team-card__sparkle--2 { bottom: 8px; right: 30%; animation-delay: 0.6s; font-size: 16px; }
.team-card__sparkle--3 { top: 50%; left: 6%; animation-delay: 1.2s; font-size: 10px; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

.team-card--shine .team-card__info strong {
  background: linear-gradient(110deg, var(--accent), #d4a060, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 2.5s linear infinite;
  font-weight: 800;
}
@keyframes text-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.team-card--shine .team-card__info span {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.team-card--shine .team-card__icon {
  color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(255, 215, 130, 0.6));
}

/* Contact 섹션 팀 링크 */
.contact__team {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact__team-label {
  display: block;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.contact__team-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.contact__team-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(243, 237, 226, 0.85);
  transition: background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.contact__team-list a:hover {
  background: rgba(168, 115, 64, 0.18);
  border-color: var(--accent-2);
  color: #fbf8f3;
  transform: translateY(-2px);
}
.contact__team-shine {
  background: linear-gradient(110deg,
    rgba(168, 115, 64, 0.18),
    rgba(255, 215, 130, 0.18),
    rgba(168, 115, 64, 0.18)) !important;
  background-size: 200% auto !important;
  border-color: rgba(192, 134, 84, 0.5) !important;
  color: #fbf8f3 !important;
  font-weight: 600 !important;
  animation: text-shine 3s linear infinite;
  box-shadow: 0 0 18px rgba(255, 215, 130, 0.3);
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,115,64,0.4);
}
.service-card__icon {
  font-size: 32px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border-radius: 14px;
  margin-bottom: 20px;
  filter: saturate(0.9);
}
.service-card h3 {
  font-size: 21px; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-card > p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: 18px;
}
.service-card ul {
  list-style: none;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.service-card ul li {
  font-size: 13px; color: var(--ink-soft); padding-left: 18px; position: relative;
}
.service-card ul li::before {
  content: '◆'; position: absolute; left: 0; color: var(--accent);
  font-size: 8px; top: 6px;
}

/* ===== Tech Stack ===== */
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.stack-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 22px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.stack-row:hover {
  border-color: rgba(168, 115, 64, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.stack-row__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}
.stack-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  cursor: default;
}
.chip:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--bg);
}
.chip--primary {
  background: rgba(168, 115, 64, 0.12);
  color: var(--accent);
  font-weight: 600;
  border-color: rgba(168, 115, 64, 0.2);
}
.chip--primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .stack-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 22px;
  }
  .stack-row__label {
    font-size: 12px;
    padding-top: 0;
  }
}

/* ===== Portfolio ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.port-card {
  padding: 36px 30px;
  background: linear-gradient(140deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
}
.port-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.port-card__tag {
  display: inline-flex; align-self: flex-start;
  padding: 5px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(168, 115, 64, 0.12); color: var(--accent);
  border-radius: var(--radius-pill);
}
.port-card h3 { font-size: 21px; letter-spacing: -0.02em; }
.port-card > p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.port-card__meta { font-size: 12px; color: var(--ink-soft); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.port-card--soon { opacity: 0.65; border-style: dashed; }

/* ===== Contact ===== */
.section--contact {
  background: var(--bg-dark);
  color: #f3ede2;
}
.section--contact .eyebrow { color: var(--accent-2); }
.section--contact h2 { color: #fbf8f3; }
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__lede {
  color: rgba(243, 237, 226, 0.72);
  margin: 22px 0 36px;
  font-size: 17px;
  line-height: 1.7;
}
.contact__mail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 115, 64, 0.3);
  border-radius: var(--radius-lg);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.contact__mail:hover {
  background: rgba(168, 115, 64, 0.12);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.contact__mail-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2);
}
.contact__mail-addr {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fbf8f3;
  word-break: break-all;
}
.contact__mail-arrow {
  font-size: 28px; color: var(--accent-2);
  transition: transform .22s ease;
}
.contact__mail:hover .contact__mail-arrow { transform: translateX(6px); }

.contact__right { display: flex; flex-direction: column; gap: 18px; }
.contact__card {
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}
.contact__card h3 {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: #fbf8f3; margin-bottom: 14px;
}
.contact__card ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.contact__card li {
  font-size: 14px; color: rgba(243, 237, 226, 0.7);
  padding-left: 22px; position: relative; line-height: 1.6;
}
.contact__card li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}
.contact__card--mini li::before { content: '✕'; color: rgba(255,255,255,0.3); }

.contact__card--highlight {
  background: linear-gradient(135deg, rgba(168, 115, 64, 0.18), rgba(168, 115, 64, 0.06));
  border: 1px solid rgba(192, 134, 84, 0.4);
  position: relative;
  overflow: hidden;
}
.contact__card--highlight::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 134, 84, 0.18), transparent 70%);
  pointer-events: none;
}
.contact__badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(192, 134, 84, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.contact__card-lede {
  font-size: 14px; color: rgba(243, 237, 226, 0.82);
  line-height: 1.7;
  margin-bottom: 16px;
}
.contact__card--highlight h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact__card--highlight ul li::before {
  color: var(--accent-2);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(243, 237, 226, 0.6);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner { display: flex; flex-direction: column; gap: 36px; }
.footer__brand {
  display: flex; align-items: center;
}
.footer__brand img {
  width: auto;
  height: 110px;
  filter: brightness(0) invert(0.95);
  opacity: 0.92;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer__cols h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px; font-weight: 700;
}
.footer__cols a, .footer__cols p {
  display: block; font-size: 14px; color: rgba(243, 237, 226, 0.7);
  line-height: 2;
}
.footer__cols a:hover { color: var(--accent-2); }
.footer__copy {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 237, 226, 0.4);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.3,1);
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  html { scroll-padding-top: 84px; }
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg);
    padding: 24px var(--pad);
    gap: 18px; border-top: 1px solid var(--line);
  }
  .section__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; }
  .hero__mascot { opacity: 0.06; right: -10%; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(48px, 16vw, 84px); }
  .hero__sub { font-size: 18px; }
  .hero__meta { gap: 24px; }
  .hero__meta strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Rich team cards (richer layout for sparkly cards) ===== */
.team-card--rich {
  align-items: stretch;
  padding: 24px 26px;
  min-height: 132px;
}
.team-card--rich .team-card__info {
  gap: 8px;
}
.team-card__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.team-card__role {
  font-size: 12.5px;
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(168, 115, 64, 0.10);
  border: 1px solid rgba(168, 115, 64, 0.22);
}
.team-card--shine .team-card__role {
  background: rgba(255, 235, 180, 0.35);
  border-color: rgba(192, 134, 84, 0.45);
  color: #8a5a2c;
}
.team-card__bio {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}
.team-card--shine .team-card__bio {
  color: #5a4a3a;
}
.team-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chip--mini {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.team-card--shine .chip--mini {
  background: rgba(255, 251, 240, 0.65);
  border-color: rgba(192, 134, 84, 0.35);
  color: #6a4a28;
}
.team-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.team-card__link:hover {
  color: var(--accent);
  background: rgba(168, 115, 64, 0.10);
  transform: translateY(-1px);
}
.team-card__link--portfolio {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(168, 115, 64, 0.35);
  background: rgba(255, 251, 240, 0.4);
  color: var(--accent);
}
.team-card__link--portfolio svg { width: 14px; height: 14px; }
.team-card__link--portfolio:hover {
  background: rgba(168, 115, 64, 0.18);
  border-color: rgba(168, 115, 64, 0.6);
  color: #6a4a28;
}
.team-card--shine .team-card__link {
  color: var(--accent);
}

@media (max-width: 720px) {
  .team-card--rich {
    grid-template-columns: auto 1fr;
    padding: 20px 18px;
  }
  .team-card--rich .team-card__avatar { grid-row: 1 / 2; }
  .team-card--rich .team-card__info { grid-column: 2 / 3; }
  .team-card--rich .team-card__links {
    grid-column: 1 / 3;
    flex-direction: row;
    align-items: center;
    margin-top: 8px;
  }
  .team-card__bio { font-size: 12.5px; }
}

/* ============================================================
   Ad slots (DB-managed via build-ads — /opt/hedvion-main-build)
   ============================================================ */
.ad-rail {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  z-index: 10;
  pointer-events: auto;
}
.ad-rail--left  { left: 16px; }
.ad-rail--right { right: 16px; }
.ad-rail .adsbygoogle { display: block; width: 160px; height: 600px; }

/* Show rails only when viewport is wide enough to fit content + both rails.
   Content max-width approx 1200px + 2x(160 + 24) = ~1568px breakpoint. */
@media (min-width: 1600px) {
  .ad-rail { display: block; }
}

.ad-inarticle,
.ad-leaderboard {
  margin: 48px auto;
  text-align: center;
  min-height: 90px;
}
.ad-inarticle  .adsbygoogle { display: block; }
.ad-leaderboard .adsbygoogle { display: block; }

@media (max-width: 720px) {
  .ad-inarticle,
  .ad-leaderboard { margin: 32px auto; min-height: 100px; }
}

/* ============================================================
   HERO — WebGL canvas + mega typography + scroll hint
   ============================================================ */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* mega 타이포 — 기존 hero__title 위에 살짝 더 강화 */
.hero__line--mega {
  font-size: clamp(72px, 16vw, 220px);
  letter-spacing: -0.06em;
  line-height: 0.88;
  display: block;
  text-shadow: 0 1px 0 rgba(45, 36, 34, 0.04);
  will-change: transform;
  transform: translateZ(0);
}
.hero__line--mega .accent {
  background: linear-gradient(135deg,
    #c08654 0%,
    #a87340 25%,
    #d4a060 55%,
    #a87340 80%,
    #c08654 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-accent-shimmer 6s linear infinite;
}
@keyframes hero-accent-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__line--mega > span:last-child {
  background: linear-gradient(180deg, var(--ink) 0%, #4a3e3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* scroll hint — 우하단 미니멀 */
.hero__scroll-hint {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--accent) 30%, var(--accent));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--bg) 50%, transparent);
  animation: scroll-drop 2.4s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { top: -30%; }
  100% { top: 130%; }
}
.hero__scroll-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
@media (max-width: 720px) {
  .hero__scroll-hint { display: none; }
}

/* ============================================================
   KPI — Big-number impact section (Hero 직후)
   ============================================================ */
.kpi {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(168, 115, 64, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(192, 134, 84, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.kpi > .container { position: relative; z-index: 1; }
.kpi__eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 44px;
}
.kpi__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.kpi__card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 36px);
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background .3s ease;
  overflow: hidden;
}
.kpi__card:last-child { border-right: 0; }
.kpi__card::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.65,.3,1);
}
.kpi__card:hover { background: var(--bg-alt); }
.kpi__card:hover::before { transform: scaleX(1); }
.kpi__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, #d4a060 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.kpi__count { display: inline-block; min-width: 1ch; }
.kpi__suffix {
  font-size: 0.55em;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.kpi__label {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.kpi__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .kpi__grid { grid-template-columns: repeat(2, 1fr); }
  .kpi__card:nth-child(2) { border-right: 0; }
  .kpi__card:nth-child(1),
  .kpi__card:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .kpi__grid { grid-template-columns: 1fr; }
  .kpi__card { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi__card:last-child { border-bottom: 0; }
}

/* ============================================================
   COMPARE — 외주 vs HEDVION
   ============================================================ */
.compare {
  padding: clamp(72px, 10vw, 130px) 0;
  background: var(--bg);
  position: relative;
}
.compare .section__head h2 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.compare__table {
  margin: 56px auto 0;
  max-width: 1080px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare__row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.compare__row:last-of-type { border-bottom: 0; }
.compare__row:not(.compare__row--head):hover { background: var(--bg-alt); }
.compare__cell {
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare__cell:last-child { border-right: 0; }
.compare__cell--axis {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--bg-alt);
}
.compare__cell--neutral {
  color: var(--ink-soft);
}
.compare__cell--hedvion {
  background: linear-gradient(135deg, rgba(168, 115, 64, 0.06), rgba(192, 134, 84, 0.03));
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.compare__cell--hedvion::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.7;
}
.compare__row--head .compare__cell {
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border-right-color: rgba(255, 255, 255, 0.08);
}
.compare__row--head .compare__cell--hedvion {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fbf8f3;
}
.compare__row--head .compare__cell--hedvion::after { display: none; }
.compare__row--head .compare__cell--axis {
  background: var(--ink);
  color: var(--bg);
}
.compare__check,
.compare__x {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.compare__check {
  background: rgba(168, 115, 64, 0.18);
  color: var(--accent);
  border: 1px solid rgba(168, 115, 64, 0.35);
}
.compare__x {
  background: rgba(45, 36, 34, 0.06);
  color: rgba(45, 36, 34, 0.4);
  border: 1px solid rgba(45, 36, 34, 0.12);
}
.compare__footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.7;
  letter-spacing: 0.01em;
}
@media (max-width: 860px) {
  .compare__row { grid-template-columns: 110px 1fr 1fr; }
  .compare__cell { padding: 16px 14px; font-size: 13.5px; }
  .compare__cell--axis { font-size: 12px; padding: 16px 12px; }
  .compare__row--head .compare__cell { padding: 14px 12px; font-size: 10.5px; }
}
@media (max-width: 560px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell {
    border-right: 0;
    border-bottom: 1px dashed var(--line);
    padding: 14px 18px;
  }
  .compare__cell:last-child { border-bottom: 0; }
  .compare__cell--axis {
    background: var(--ink);
    color: var(--bg);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 18px;
  }
  .compare__row--head { display: none; }
  .compare__cell--neutral::before { content: '일반 외주팀 — '; font-weight: 700; color: rgba(45, 36, 34, 0.4); margin-right: 4px; }
  .compare__cell--hedvion::before { content: 'HEDVION — '; font-weight: 700; color: var(--accent); margin-right: 4px; }
}

/* ============================================================
   SERVICES — hover 강화 (코퍼 글로우 + 보더 그라데이션)
   ============================================================ */
.service-card {
  position: relative;
  isolation: isolate;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), transparent 70%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover .service-card__icon {
  transform: translateY(-3px) rotate(-5deg);
  background: linear-gradient(135deg, rgba(168, 115, 64, 0.18), rgba(192, 134, 84, 0.08));
  filter: saturate(1.1);
}
.service-card__icon { transition: transform .35s ease, background .35s ease, filter .35s ease; }

/* ============================================================
   Mega hero responsive guard
   ============================================================ */
@media (max-width: 520px) {
  .hero__line--mega { font-size: clamp(56px, 22vw, 110px); letter-spacing: -0.05em; }
}

/* ============================================================
   Section-level WebGL canvases (about / contact)
   ============================================================ */
.section--about { position: relative; overflow: hidden; }
.section--about > .container { position: relative; z-index: 1; }
.section__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.section__canvas--about {
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.section--contact { position: relative; overflow: hidden; }
.section--contact > .container { position: relative; z-index: 1; }
.section__canvas--contact {
  opacity: 0.85;
  z-index: 0;
}

/* ============================================================
   Every-section WebGL canvases — KPI/Team/Services/Compare/Stack/Portfolio/Sites
   "모든 섹션에 다 넣어" — 통일된 drift particle 캔버스 위치
   ============================================================ */
.section--team,
.section--services,
.section--stack,
.section--portfolio,
.section--sites,
.kpi,
.compare {
  position: relative;
  overflow: hidden;
}
.section--team > .container,
.section--services > .container,
.section--stack > .container,
.section--portfolio > .container,
.section--sites > .container,
.kpi > .container,
.compare > .container {
  position: relative;
  z-index: 2;
}
.section__canvas--kpi,
.section__canvas--team,
.section__canvas--services,
.section__canvas--compare,
.section__canvas--stack,
.section__canvas--portfolio,
.section__canvas--sites {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* 톤 별 opacity / blend — cream 배경이라 multiply 로 코퍼 살리기 */
.section__canvas--kpi       { opacity: 0.55; mix-blend-mode: multiply; }
.section__canvas--team      { opacity: 0.40; mix-blend-mode: multiply; }
.section__canvas--services  { opacity: 0.45; mix-blend-mode: multiply; }
.section__canvas--compare   { opacity: 0.50; mix-blend-mode: multiply; }
.section__canvas--stack     { opacity: 0.35; mix-blend-mode: multiply; }
.section__canvas--portfolio { opacity: 0.45; mix-blend-mode: multiply; }
.section__canvas--sites     { opacity: 0.50; mix-blend-mode: multiply; }

/* KPI ::after dot grid 가 canvas 와 같이 보이도록 z-index 조정 */
.kpi::before { z-index: 0; }
.kpi::after  { z-index: 1; opacity: 0.25; }

/* Sites ::before/::after 도 동일 */
#sites::before, #sites::after { z-index: 0; }

/* Compare ::before drift gradient z-index */
.compare::before { z-index: 0; }

/* ============================================================
   KPI — dot grid background + gradient underline glow
   ============================================================ */
.kpi {
  background:
    radial-gradient(circle at 25% 50%, rgba(168, 115, 64, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(192, 134, 84, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(168, 115, 64, 0.18) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.kpi__card {
  position: relative;
}
.kpi__num {
  position: relative;
}
.kpi__num::after {
  content: '';
  position: absolute;
  left: 0; right: 30%;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.65,.3,1) .2s;
}
.kpi__card.reveal.is-visible .kpi__num::after { transform: scaleX(1); }

/* ============================================================
   COMPARE — animated gradient mesh background
   ============================================================ */
.compare {
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(168, 115, 64, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(192, 134, 84, 0.08), transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 50%, rgba(212, 160, 96, 0.06), transparent 60%);
  animation: compare-drift 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
.compare > .container { position: relative; z-index: 1; }
@keyframes compare-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.05); }
  100% { transform: translate(-2%, 3%) scale(0.98); }
}

/* ============================================================
   TILT cards (Services / Team / Portfolio) — 3D mouse tilt
   ============================================================ */
.tilt {
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.tilt > * {
  transform: translateZ(0);
  transition: transform .25s ease;
}

/* Services 카드 radial glow on hover */
.service-card {
  --glow-x: 50%;
  --glow-y: 50%;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle 240px at var(--glow-x) var(--glow-y),
    rgba(168, 115, 64, 0.16),
    rgba(192, 134, 84, 0.06) 40%,
    transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover::before { opacity: 1; }

/* Portfolio cards tilt + spot light */
.port-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.port-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle 280px at var(--glow-x) var(--glow-y),
    rgba(168, 115, 64, 0.14),
    transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.port-card > * { position: relative; z-index: 1; }
.port-card:hover::after { opacity: 1; }

/* ============================================================
   STACK — 칩 hover 강화 + 행 호버 시 코퍼 라인 강조
   ============================================================ */
.stack {
  position: relative;
}
.stack-row {
  position: relative;
  overflow: hidden;
}
.stack-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.2,.65,.3,1);
}
.stack-row:hover::before { transform: scaleY(1); }
.chip {
  transition: background .18s ease, color .18s ease, transform .18s ease,
              border-color .18s ease, box-shadow .25s ease;
}
.chip:hover {
  box-shadow: 0 6px 20px rgba(168, 115, 64, 0.25);
}
.chip--primary:hover {
  box-shadow: 0 8px 28px rgba(168, 115, 64, 0.4);
}

/* ============================================================
   SITES — dot grid + breathing gradient background
   ============================================================ */
#sites {
  position: relative;
  overflow: hidden;
}
#sites::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(168, 115, 64, 0.12) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
#sites::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle 500px at 20% 30%, rgba(168, 115, 64, 0.06), transparent 60%),
    radial-gradient(circle 600px at 80% 70%, rgba(192, 134, 84, 0.05), transparent 60%);
  animation: sites-breathe 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
#sites > .container { position: relative; z-index: 1; }
@keyframes sites-breathe {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-3%, 2%) scale(1.05); opacity: 1; }
}
.site-card {
  --glow-x: 50%;
  --glow-y: 50%;
}
/* override 기존 site-card::after (top right 고정 → 마우스 추적) */
.site-card::after {
  background: radial-gradient(circle 220px at var(--glow-x) var(--glow-y),
    rgba(168, 115, 64, 0.22),
    rgba(192, 134, 84, 0.08) 40%,
    transparent 65%) !important;
}

/* ============================================================
   TEAM — 카드 미세 tilt 클래스 (기존 .team-card 와 호환)
   ============================================================ */
.team-card {
  --glow-x: 50%;
  --glow-y: 50%;
}
.team-card::before:not(.team-card--shine::before) {
  /* shine 카드는 sweep 효과 유지 — 일반 카드만 radial glow */
}

/* ============================================================
   AD slot — 신규 mobon-hero (hero 직후, KPI 위), m-cover (header 직후)
   ============================================================ */
.ad-mobon-hero {
  margin: 28px auto 0;
  text-align: center;
  min-height: 100px;
}
.ad-mobon-hero .adsbygoogle,
.ad-mobon-hero > div { display: inline-block; }

.ad-m-cover {
  display: none;
  margin: 0 auto;
  text-align: center;
  padding: 8px 0;
}
.ad-m-cover > div { display: inline-block; }
@media (max-width: 1023px) {
  .ad-m-cover { display: block; }
}

/* ============================
   SITES — Live sites card grid
   ============================ */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
  overflow: hidden;
  isolation: isolate;
}

.site-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.55;
  transition: width 0.32s ease, opacity 0.32s ease;
}

.site-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.site-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.site-card:hover::before {
  width: 5px;
  opacity: 1;
}

.site-card:hover::after { opacity: 1; }

.site-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.site-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(168, 115, 64, 0.08);
  transition: transform 0.32s ease, border-color 0.32s ease;
}

.site-card:hover .site-card__icon {
  transform: rotate(-4deg) scale(1.05);
  border-color: var(--accent);
}

.site-card__arrow {
  font-size: 17px;
  color: var(--ink-soft);
  opacity: 0.5;
  transition: transform 0.32s ease, opacity 0.32s ease, color 0.32s ease;
  line-height: 1;
}

.site-card:hover .site-card__arrow {
  color: var(--accent);
  opacity: 1;
  transform: translate(4px, -4px);
}

.site-card__domain {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  display: inline-block;
  padding: 4px 9px;
  background: rgba(168, 115, 64, 0.06);
  border: 1px solid rgba(168, 115, 64, 0.18);
  border-radius: 6px;
  width: fit-content;
}

.site-card h3 {
  font-size: 19.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2px 0 0;
}

.site-card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.site-card__meta {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  opacity: 0.78;
}

@media (max-width: 640px) {
  .sites-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-card { padding: 22px 20px 18px; }
}

