/* =============================================================================
 * styles.css — 유레카 공작소 · 스마트팜 (라이트/밝은 농업 테마)
 * 톤: 밝은 오프화이트 바탕 + 농업 그린 액센트 + 진한 차콜 텍스트 + 넓은 여백
 * 가시성 헌법: 18px 하한 · 충분한 명도대비 · 고스트버튼 금지
 * 스크롤 시 섹션이 펼쳐지는 리빌 애니메이션(.reveal + JS 스태거)
 * ============================================================================= */

:root {
  /* 배경 — ☀️ 빛/햇살 (따뜻한 크림, 차가운 순백 대신) */
  --bg: #f9f7f0;
  --bg-alt: #eef2e3;      /* 섹션 틴트 (라이트 그린-샌드) */
  --surface: #ffffff;     /* 카드 (순백으로 또렷하게) */

  /* 텍스트 (진한 차콜 — 밝은 바탕 위 고대비) */
  --ink: #1b2a20;         /* 헤드라인 */
  --body: #3c4a40;        /* 본문 */
  --sub: #5e6a5f;         /* 부가 정보 */
  --muted: #7b857b;       /* 흐림 하한 */
  --line: #cdd6bd;        /* 보더 — 흰 카드가 크림 배경 위에서 또렷하도록 세이지 그린 햇라인 */

  /* 🌱 작물 — 그린(주 액센트) */
  --green: #2f9e44;
  --green-deep: #1c6b39;  /* 진한 그린 (헤드라인 강조) */
  --green-soft: #e7f3e6;  /* 연한 그린 배경 */
  --lime: #7cbf3a;        /* 신선한 라임 하이라이트 */

  /* 🟤 토지 — 어스 / 🔵 하늘 — 스카이 / ☀️ 햇빛 — 선 */
  --earth: #9c6b3f;
  --earth-soft: #f1e8d8;
  --sky: #4f93c4;
  --sky-soft: #e4eef6;
  --sun: #e6a93a;

  --font-sans: "Pretendard", ui-sans-serif, system-ui, "Noto Sans KR", sans-serif;
  --font-tech: "Space Grotesk", ui-sans-serif, sans-serif;

  --wrap: 1240px;
  --radius: 20px;
  --shadow: 0 26px 64px -28px rgba(20,60,35,.34), 0 8px 20px -10px rgba(20,60,35,.14);
  --shadow-sm: 0 6px 20px -8px rgba(20,60,35,.20), 0 2px 5px rgba(20,60,35,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;              /* 가시성 헌법 18px 하한 */
  line-height: 1.8;
  color: var(--body);
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(47,158,68,.08), transparent 60%),
    radial-gradient(900px 500px at 92% 4%, rgba(92,179,56,.06), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.font-tech { font-family: var(--font-tech); }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.glow-orb { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; z-index: 0; }

.t-ink { color: var(--ink); } .t-strong { color: var(--ink); }
.t-sub { color: var(--sub); } .t-brand { color: var(--green); }

/* ── 버튼 (고스트버튼 금지) ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1.125rem;
  padding: .9rem 1.7rem; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-grad {
  background: linear-gradient(135deg, var(--green), #54b85b); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(47,158,68,.55);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(47,158,68,.7); }
.btn-solid {                 /* 보조 버튼도 채움 (고스트 아님) */
  background: var(--green-soft); color: var(--green-deep); border: 2px solid #c3e6cb;
}
.btn-solid:hover { background: #d8eede; border-color: var(--green); }
.btn-lg { padding: 1rem 2rem; font-size: 1.2rem; }

/* ── 헤더 / 네비 ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  background: linear-gradient(180deg, rgba(20,82,45,.97), rgba(28,107,57,.94));
  box-shadow: 0 8px 28px -16px rgba(12,45,25,.6);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(var(--wrap), 92vw); margin-inline: auto; padding: clamp(18px,2.4vh,30px) 0; }
.brand { display: flex; align-items: center; gap: clamp(12px,1.6vw,20px); text-decoration: none; }
.brand__cube { width: clamp(58px,6.4vw,78px); height: clamp(58px,6.4vw,78px); flex-shrink: 0; }
.brand__word { font-family: var(--font-tech); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(28px,4vw,40px); color: #fff; white-space: nowrap; line-height: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.brand__word b { color: #b6f26b; font-weight: 700; }

.gnb { display: none; align-items: center; gap: clamp(22px,2.4vw,42px); }
.navlink { position: relative; display: inline-block; color: rgba(255,255,255,.9); text-decoration: none;
  font-size: 1.25rem; font-weight: 600; padding: .4rem 0; transition: color .25s, transform .25s; }
.navlink::after { content: ""; position: absolute; left: 50%; bottom: -2px; height: 2px; width: 0;
  border-radius: 2px; background: #b6f26b; transform: translateX(-50%); transition: width .3s; }
.navlink:hover { color: #fff; transform: translateY(-1px); }
.navlink:hover::after, .navlink[aria-current="page"]::after { width: 100%; }
.navlink[aria-current="page"] { color: #fff; }
.gnb__divider { height: 26px; width: 1px; background: rgba(255,255,255,.22); }

.navtoggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); cursor: pointer; }
.navtoggle span { height: 2px; width: 18px; border-radius: 2px; background: var(--ink); }
.mobile-menu { display: none; flex-direction: column; gap: .2rem; border-top: 1px solid var(--line);
  background: #fff; padding: 14px clamp(18px,4vw,48px) 22px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 600;
  padding: .9rem 0; border-bottom: 1px solid var(--line); }
/* 헤더 QR 배지 — 휴대폰 스캔용 (hover 시 크게). gnb 안이라 모바일에선 자동 숨김 */
.qr-badge { display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 82px; height: 82px; padding: 5px; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.45); }
.qr-badge img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* 진한 헤더 위 문의 버튼 — 흰 pill로 띄움 */
.site-header .btn-grad { background: #fff; color: var(--green-deep); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.site-header .btn-grad:hover { background: #eafbef; transform: translateY(-2px); }
.navtoggle { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.navtoggle span { background: #fff; }
@media (min-width: 860px) { .gnb { display: flex; } .navtoggle { display: none; } }

/* ── 섹션 공통 ──────────────────────────────────────────────── */
.section { position: relative; padding: clamp(40px,6vh,80px) 0; }
.section--tint { background: var(--bg-alt); }
.eyebrow { font-family: var(--font-tech); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: 1.0625rem; color: var(--green); margin: 0 0 1.1rem; }
.s-title { font-size: clamp(2rem,4vw,3.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 1.1rem; word-break: keep-all; }
.s-lead { font-size: clamp(1.25rem,1.8vw,1.5rem); line-height: 1.75; color: var(--body);
  max-width: 60ch; margin: 0 0 2.4rem; }
.s-lead--center { margin-inline: auto; text-align: center; }

/* ── 카드(글래스→화이트) ───────────────────────────────────── */
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cards { display: grid; gap: clamp(16px,2vw,24px); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* ── 홈 히어로 (밝은 톤) ───────────────────────────────────── */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; overflow: hidden; border-radius: 0 0 32px 32px;
  min-height: clamp(520px, 78vh, 800px); padding: clamp(56px,9vh,110px) clamp(20px,4vw,48px);
  background: linear-gradient(180deg, var(--green-soft), var(--bg) 70%); }
.hero__bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0; transition: opacity .7s; }
.hero.has-media .hero__bg { opacity: 1; }
/* 배경 영상 위 텍스트 가독성 보험 (영상 있을 때만 은은한 흰 후광) */
.hero.has-media .hero__title { text-shadow: 0 2px 10px rgba(255,255,255,.95), 0 0 26px rgba(255,255,255,.8); }
.hero.has-media .hero__sub { text-shadow: 0 1px 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.75); }
.hero.has-media .hero__badge { box-shadow: 0 2px 14px rgba(255,255,255,.6); }
.hero__bgimg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
/* 영상이 있을 땐 전체를 덮지 않음 — 아주 옅은 가장자리 비네팅만(영상 선명 유지) */
.hero:has(.hero__bg [src]) .hero__veil,
.hero.has-media .hero__veil { background: radial-gradient(120% 90% at 50% 45%, transparent 52%, rgba(255,255,255,.22)); }
.hero__veil { position: absolute; inset: 0; z-index: 1; background: transparent; }
.hero__rings { position: absolute; right: -120px; top: -60px; z-index: 0; height: 150%; opacity: .12; }
.hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
/* 영상이 깔릴 때만 — 중앙 글자 영역에만 프로스트 글라스 패널 (주변 영상은 선명) */
.hero.has-media .hero__in {
  max-width: min(780px, 94%);
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(3px) saturate(1.05); backdrop-filter: blur(3px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  padding: clamp(30px,4vw,56px) clamp(26px,5vw,64px);
  box-shadow: 0 24px 70px -28px rgba(18,45,28,.35);
}
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  font-family: var(--font-tech); font-weight: 600; font-size: 1.0625rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-deep); border: 1px solid #c3e6cb; background: var(--green-soft); padding: .55rem 1.2rem; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(47,158,68,.6); }
.hero__title { margin: 1.6rem 0 0; font-size: clamp(2.6rem,6.2vw,5rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; color: var(--ink); max-width: 18ch; text-wrap: balance; word-break: keep-all; }
.hero__title .hl { color: var(--green); }
.hero__sub { margin: 1.7rem auto 0; max-width: 44ch; font-size: clamp(1.3rem,2vw,1.65rem); font-weight: 500;
  line-height: 1.65; color: var(--body); }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero__chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; align-items: center; }
.hero__chips .lbl { font-family: var(--font-tech); font-weight: 700; font-size: 1.0625rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sub); margin-right: .3rem; }
.chip { border: 1px solid #cfe6d4; background: #fff; color: var(--green-deep); font-weight: 600;
  border-radius: 999px; padding: .5rem 1.1rem; font-size: 1.0625rem; white-space: nowrap; }

/* ── 이미지 카드 (홈 What we do) ───────────────────────────── */
.imgcard { position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s; }
.imgcard:hover { transform: translateY(-8px); border-color: #bfe3c6; box-shadow: var(--shadow); }
.imgcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.imgcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.imgcard:hover .imgcard__media img { transform: scale(1.06); }
.imgcard__media .slot { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; }
.imgcard__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,30,18,.05) 40%, rgba(10,30,18,.6)); }
.imgcard__no { position: absolute; top: 1rem; left: 1.1rem; z-index: 2; font-family: var(--font-tech);
  font-weight: 700; font-size: 1.05rem; color: #fff; background: var(--green);
  padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(47,158,68,.7); }
.imgcard__tag { position: absolute; bottom: 1rem; left: 1.2rem; z-index: 2; color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.imgcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.7rem 1.7rem; }
.imgcard__body p { margin: 0; flex: 1; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }
.imgcard__more { margin-top: 1.4rem; font-weight: 700; font-size: 1.0625rem; color: var(--green);
  display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s; }
.imgcard:hover .imgcard__more { gap: .8rem; }

/* ── 사업/메뉴 카드 (레거시, 아이콘형) ─────────────────────── */
.bizcard { position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  padding: 2rem; transition: transform .28s, border-color .28s, box-shadow .28s; }
.bizcard:hover { transform: translateY(-6px); border-color: #bfe3c6; box-shadow: var(--shadow); }
.bizcard__top { position: absolute; inset-inline: 1.5rem; top: 0; height: 3px; background: var(--green); border-radius: 3px; }
.bizcard__glow { display: none; }
.bizcard__no { font-family: var(--font-tech); font-weight: 700; font-size: 1.25rem; color: var(--green); }
.bizcard__icon { width: 46px; height: 46px; color: var(--green); }
.bizcard h3 { margin: 1.4rem 0 .8rem; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.bizcard p { margin: 0; flex: 1; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }
.bizcard__more { margin-top: 1.6rem; font-weight: 700; font-size: 1.0625rem; color: var(--green); }
.bizcard__head { display: flex; align-items: center; justify-content: space-between; }

/* ── 인용/이념 블록 ────────────────────────────────────────── */
.philosophy { border-left: 5px solid var(--green); padding: clamp(2rem,4vw,3rem); }
.philosophy__q { font-size: clamp(1.6rem,3.2vw,2.4rem); font-weight: 800; line-height: 1.35; color: var(--ink); margin: 1rem 0 0; }
.philosophy__b { font-size: clamp(1.2rem,1.6vw,1.4rem); line-height: 1.8; color: var(--body); margin: 1.2rem 0 0; max-width: 62ch; }

/* ── CTA 밴드 ──────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); text-align: center;
  padding: clamp(48px,7vw,80px) clamp(24px,4vw,48px);
  background: linear-gradient(135deg, #2f9e44, #3fae57); color: #fff;
  box-shadow: 0 30px 70px -36px rgba(47,158,68,.6); }
.cta-band h2 { font-size: clamp(1.9rem,3.6vw,2.8rem); font-weight: 800; color: #fff; margin: 0 0 1rem; }
.cta-band p { font-size: clamp(1.2rem,1.7vw,1.4rem); color: #eafaee; margin: 0 auto 2rem; max-width: 52ch; }
.cta-band .btn-grad { background: #fff; color: var(--green-deep); box-shadow: 0 14px 30px -12px rgba(0,0,0,.25); }
.cta-band .btn-grad:hover { background: #f1fbf3; }

/* ── 상세페이지 히어로 (밝은 톤) ───────────────────────────── */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; min-height: clamp(460px, 64vh, 760px);
  padding: clamp(48px,8vh,96px) 0; background: linear-gradient(180deg, var(--green-soft), var(--bg)); }
.page-hero__glow { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 480px at 85% 6%, rgba(47,158,68,.12), transparent 60%); }
/* 배경 영상 준비 — assets/hero-<page>.mp4 가 로드되면 자동 표시(common.js 주입) */
.page-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .7s; }
/* 핵심기술: 리프트가 위로 솟은 장면 → 위쪽 기준으로 잡아 트레이가 안 잘리게 */
body[data-page="tech"] .page-hero__bg { object-position: center 34%; }
/* 문의: 딸기 베드 윗부분이 잘리지 않게 위쪽 기준 */
body[data-page="contact"] .page-hero__bg { object-position: center 12%; }
/* 배경영상이 밝아 글씨가 잘 보이므로 스크림 최소화 — 영상 선명하게.
   텍스트가 왼쪽 정렬이라 왼쪽만 옅게 워시, 오른쪽은 투명(영상 선명) */
.page-hero__scrim { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .7s;
  background: linear-gradient(90deg, rgba(249,247,240,.58) 0%, rgba(249,247,240,.24) 40%, rgba(249,247,240,.04) 66%, transparent 100%); }
.page-hero.has-media .page-hero__bg, .page-hero.has-media .page-hero__scrim { opacity: 1; }
.page-hero.has-media .page-hero__title { text-shadow: 0 1px 10px rgba(255,255,255,.85), 0 0 22px rgba(255,255,255,.55); }
.page-hero.has-media .page-hero__sum   { color: #000; text-shadow: 0 1px 8px rgba(255,255,255,.9); }
.page-hero > .wrap { position: relative; z-index: 3; }
.page-hero__no { font-family: var(--font-tech); display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 1.2rem; }
.page-hero__label { font-size: 1.4rem; font-weight: 800; color: var(--green); margin-left: .7rem; }
.page-hero__title { font-size: clamp(2.4rem,5vw,4.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink); margin: 1.4rem 0 0; word-break: keep-all; max-width: 20ch; }
.page-hero__sum { font-size: clamp(1.35rem,2vw,1.65rem); font-weight: 500; line-height: 1.65; color: var(--body);
  margin: 1.6rem 0 0; max-width: 60ch; }

/* ── 영상 임베드 ───────────────────────────────────────────── */
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a140e; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--16x9 { aspect-ratio: 16/9; }
.embed--9x16 { aspect-ratio: 9/16; }

/* ── 이미지 슬롯 (힉스필드/파이어플라이 생성물로 교체) ──────── */
.slot { display: grid; place-items: center; text-align: center; color: var(--green-deep);
  border: 2px dashed #aedab8; border-radius: 14px; padding: 1rem;
  background: repeating-linear-gradient(45deg, #f0f7ee 0 12px, #f8fbf6 12px 24px);
  font-size: .95rem; font-weight: 700; min-height: 160px; }
.slot small { display: block; color: var(--muted); font-weight: 500; margin-top: .3rem; }
/* 실제 이미지로 교체된 카드 비주얼 */
.cardimg { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; background: var(--bg-alt); }
.techcard .cardimg { margin-bottom: 1.3rem; }
.cardimg--fill { aspect-ratio: auto; height: 100%; min-height: 320px; }
/* 카드 안 동영상 (이미지 카드와 동일 사이즈) */
.cardvid { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; background: var(--bg-alt); }
.techcard .cardvid { margin-bottom: 1.3rem; }

/* ── 정지 이미지 '액션' (켄번스 — 느린 줌·팬) ──────────────── */
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.2%); }
}
.imgcard__media img, .cardimg, .gtile__img {
  animation: kenburns 22s ease-in-out infinite alternate; will-change: transform;
}
.cardimg { overflow: hidden; }              /* 줌 시 둥근모서리 안에서 잘리도록 */
.imgcard:nth-child(2) .imgcard__media img, .gtile:nth-child(2n) .gtile__img { animation-duration: 28s; }
.imgcard:nth-child(3) .imgcard__media img, .gtile:nth-child(3n) .gtile__img { animation-duration: 19s; }
/* 카드 자체 호버 살짝 떠오르기 */
.gtile { transition: transform .35s, box-shadow .35s; }
.gtile:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .imgcard__media img, .cardimg, .gtile__img { animation: none; }
}

/* ── 활용 갤러리 ───────────────────────────────────────────── */
.gallery { display: grid; gap: clamp(14px,1.8vw,22px); margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gtile { position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.gtile__wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.gtile__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem 1.1rem .9rem; color: #fff; font-weight: 700; font-size: 1.0625rem;
  background: linear-gradient(180deg, transparent, rgba(12,30,18,.72)); }
.gtile__cap small { display: block; font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.82); margin-top: .15rem; }

/* ── 상태 배지 ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px; background: #eef3ec; border: 1px solid var(--line); color: var(--sub); }
.badge--live { background: #e7f7d9; border-color: #cdeaa6; color: #4b7d12; }
.badge--future { background: var(--sky-soft); border-color: #bcd9ed; color: #2b6f99; }
.badge--patent { background: #e6f4f6; border-color: #b8dfe4; color: #1d7f8c; }

/* ── 단계 라벨 (지금 / 미래) ───────────────────────────────── */
.tier-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.tier-head h2 { margin: 0; }
.tier-tag { font-family: var(--font-tech); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: 1rem; padding: .35rem .9rem; border-radius: 999px; }
.tier-tag--now { background: #e7f7d9; color: #4b7d12; }
.tier-tag--future { background: var(--sky-soft); color: #2b6f99; }
.tier-divider { height: 1px; margin: clamp(1.6rem,3vw,2.6rem) 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ── 기술 카드 ─────────────────────────────────────────────── */
.techcard { display: flex; flex-direction: column; padding: 1.8rem; }
.techcard .slot { margin-bottom: 1.3rem; }
.techcard__sub { font-family: var(--font-tech); font-size: .95rem; font-weight: 600; letter-spacing: .04em;
  color: var(--green); margin: 0 0 .4rem; }
.techcard h3 { margin: 0 0 .7rem; font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.techcard p { margin: 0 0 1.1rem; flex: 1; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }
.techcard__hit { margin: 0 0 1.1rem; font-size: 1rem; font-weight: 700; color: var(--green-deep);
  display: flex; align-items: flex-start; gap: .5rem; }

/* ── 로드맵 타임라인 (세로) ────────────────────────────────── */
.timeline { position: relative; margin: 0; padding: 0 0 0 2.2rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--green), #bfe3c6); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 clamp(1.6rem,3vw,2.4rem); }
.tl-item::before { content: ""; position: absolute; left: -2.2rem; top: 4px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; border: 4px solid var(--green); box-shadow: 0 0 0 4px rgba(47,158,68,.12); }
.tl-item:last-child { padding-bottom: 0; }
.tl-stage { font-family: var(--font-tech); font-weight: 700; font-size: 1rem; letter-spacing: .06em;
  color: var(--green); text-transform: uppercase; }
.tl-name { margin: .3rem 0 .5rem; font-size: clamp(1.3rem,2vw,1.7rem); font-weight: 800; color: var(--ink); }
.tl-line { margin: 0 0 .7rem; color: var(--body); font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }

/* ── 지표 / 인용 ───────────────────────────────────────────── */
.metric { text-align: center; padding: 1.6rem; }
.metric b { display: block; font-family: var(--font-tech); font-size: clamp(2.2rem,5vw,3.2rem);
  font-weight: 700; color: var(--green); line-height: 1; }
.metric span { display: block; margin-top: .6rem; font-weight: 700; color: var(--ink); }
.metric small { display: block; margin-top: .25rem; font-size: .9rem; color: var(--muted); }
.quote { padding: 1.6rem 1.8rem; }
.quote blockquote { margin: 0 0 .8rem; font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.quote cite { font-style: normal; font-size: .98rem; font-weight: 700; color: var(--green); }

/* ── 강점/가치 카드 ────────────────────────────────────────── */
.valuecard { padding: 1.9rem; }
.valuecard__icon { width: 46px; height: 46px; color: var(--green); margin-bottom: 1rem; }
.valuecard h3 { margin: 0 0 .6rem; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.valuecard p { margin: 0; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }
.valuecard sup a { color: var(--green); text-decoration: none; font-size: .7em; }

/* ── 지식재산(특허) ────────────────────────────────────────── */
.ip-card { padding: clamp(1.8rem,3vw,2.4rem); }
.ip-card h3 { margin: .9rem 0 .6rem; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.ip-card p { margin: 0 0 1.2rem; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }
.ip-grades { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; }
.ip-grade { text-align: center; padding: .9rem .4rem; border-radius: 12px; background: var(--green-soft); border: 1px solid #c3e6cb; }
.ip-grade b { display: block; font-family: var(--font-tech); font-size: 1.5rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.ip-grade span { display: block; margin-top: .35rem; font-size: .85rem; color: var(--body); }
.ip-grade small { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.ip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ip-list li { display: flex; align-items: center; gap: .7rem; font-size: 1.0625rem; color: var(--ink); }
.ip-list li::before { content: "▸"; color: var(--green); font-weight: 700; }
.ip-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.2rem; font-size: .95rem; color: var(--muted); }
.ip-meta span b { color: var(--body); font-weight: 600; }

/* ── 원칙 카드 그리드 (회사소개 핵심가치) ──────────────────── */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px,2vw,22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); }
.principles li { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform .28s, border-color .28s, box-shadow .28s; }
.principles li:hover { transform: translateY(-5px); border-color: #bfe3c6; box-shadow: var(--shadow); }
.principles .n { font-family: var(--font-tech); font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--green); width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(47,158,68,.6); }
.principles .txt { font-size: 1.2rem; font-weight: 700; line-height: 1.5; color: var(--ink); }

/* ── 여정 (출발→검증→선택) ────────────────────────────────── */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); }
.journey li { padding: 1.9rem; }
.journey .step { display: inline-block; font-family: var(--font-tech); font-weight: 700; font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.journey h3 { margin: 0 0 .6rem; font-size: 1.3rem; color: var(--ink); }
.journey p { margin: 0; color: var(--body); font-size: 1.0625rem; line-height: 1.7; }

/* ── 대표 / 문의 ───────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem,3vw,2.6rem); align-items: start; }
.founder__photo { aspect-ratio: 1; border-radius: 16px; }
.founder__name { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 1.1rem 0 .2rem; }
.founder__role { color: var(--green); font-weight: 700; margin: 0; }
.fpoint { padding: 1.4rem 1.6rem; margin-bottom: 1rem; border-left: 4px solid var(--green); }
.fpoint h3 { margin: 0 0 .4rem; font-size: 1.2rem; color: var(--ink); }
.fpoint p { margin: 0; color: var(--body); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem,3vw,2.6rem); align-items: start; }
.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.infolist .k { font-family: var(--font-tech); font-weight: 700; color: var(--green); min-width: 92px; }
.infolist .v { color: var(--ink); }
@media (max-width: 760px) { .founder, .contact-grid { grid-template-columns: 1fr; } }

/* ── 푸터 (밝은 톤) ────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--earth-soft); margin-top: 2rem; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  width: min(var(--wrap), 92vw); margin-inline: auto; padding: clamp(32px,5vh,56px) 0; }
.site-footer__brand b { font-family: var(--font-tech); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.site-footer__brand b span { color: var(--green); }
.site-footer__brand p { margin: .8rem 0 0; color: var(--sub); font-size: 1.0625rem; }
.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  width: min(var(--wrap), 92vw); margin-inline: auto; padding: 1.2rem 0; font-family: var(--font-tech);
  font-size: 1rem; color: var(--muted); }
.footnotes { width: min(var(--wrap), 92vw); margin: 0 auto; padding: 0 0 2rem; list-style: none; }
.footnotes li { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-bottom: .35rem; padding-left: 1.2rem; text-indent: -1.2rem; }

/* ── 스크롤 리빌 (이벤트식 펼침) ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 600px) { :root { --fs-body: 17px; } .hero { min-height: 70vh; } }
