/* ===========================================
   호성양행 — 재제조 토너카트리지
   Visual System v4  (photo-led / editorial)
   =========================================== */

:root {
  --g: #00a06b;            /* 브랜드 그린 */

  --g-deep: #04503a;
  --g-light: #3fd396;
  --g-50: #eef8f4;

  --ink: #0c1512;
  --ink-2: #16241f;
  --body: #4a5b55;
  --muted: #7c8d87;
  --line: #e4eae7;
  --paper: #ffffff;
  --paper-2: #f5f8f7;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --d1: clamp(2.3rem, 1.1rem + 4.6vw, 5rem);      /* 히어로 */
  --d2: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem);   /* 섹션 타이틀 */
  --d3: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --lead: clamp(.98rem, .93rem + .35vw, 1.12rem);
  --sm: .875rem;
  --xs: .8125rem;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --sec: clamp(4rem, 2.4rem + 6vw, 8rem);
  --wrap: 1280px;

  --t: .4s cubic-bezier(.22,1,.36,1);
  --t-fast: .2s cubic-bezier(.4,0,.2,1);
  --header-h: 82px;
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--paper);
  line-height: 1.75;
  letter-spacing: -.014em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
::selection { background: var(--g); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip { position: fixed; top: -80px; left: 12px; z-index: 5000; background: var(--ink); color: #fff; padding: 10px 18px; }
.skip:focus { top: 0; }

/* ================= Header ================= */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.hd-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: none; padding-right: 0; }
.hd .logo { flex: 0 0 auto; position: relative; z-index: 2; }
.hd .logo img { width: 196px; transition: opacity var(--t-fast); }
.hd .logo .dark { display: none; }

.hd nav { margin-left: auto; margin-right: auto; }
.hd nav > ul { display: flex; gap: clamp(10px, 2.2vw, 40px); }
.hd nav > ul > li > a {
  position: relative; display: block; padding: 10px 4px;
  font-size: 1rem; font-weight: 600; color: #fff;
  transition: color var(--t-fast);
}
.hd nav > ul > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--g-light); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.hd nav > ul > li > a:hover::after,
.hd nav > ul > li > a.on::after { transform: scaleX(1); }

.hd nav .m-util { display: none; }
.hd .util { display: flex; flex: 0 0 auto; align-self: stretch; }
.hd .util a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 26px; font-size: .9rem; font-weight: 700; color: #fff;
  transition: filter var(--t-fast);
}
.hd .util a.quote { background: var(--g); }
.hd .util a.call { background: var(--ink); }
.hd .util a:hover { filter: brightness(1.12); }
.hd .util svg { width: 16px; height: 16px; }

/* 스크롤 시 흰 헤더 */
.hd.solid { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hd.solid .logo .light { display: none; }
.hd.solid .logo .dark { display: block; }
.hd.solid nav > ul > li > a { color: var(--ink); }
.hd.solid nav > ul > li > a::after { background: var(--g); }
.hd.solid .burger span { background: var(--ink); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 1002; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t-fast), background var(--t); }
.burger[aria-expanded="true"] span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.scrim { position: fixed; inset: 0; background: rgba(8,20,16,.5); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); z-index: 998; }
.scrim.show { opacity: 1; visibility: visible; }
body.lock { overflow: hidden; }

/* ================= Hero ================= */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slide.on .bg { transform: scale(1.14); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,13,.62) 0%, rgba(6,16,13,.28) 34%, rgba(6,16,13,.72) 100%),
    linear-gradient(100deg, rgba(4,80,58,.42), transparent 62%);
}
.slide .txt {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--pad);
}
.hero .kick {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--sm); font-weight: 600; letter-spacing: .22em; color: #a7ecca;
  margin-bottom: 22px;
}
.hero .kick::before { content: ''; width: 34px; height: 1px; background: var(--g-light); }
.hero h1 { font-size: var(--d1); color: #fff; letter-spacing: -.045em; margin-bottom: 24px; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero h1 b { font-weight: 800; }
.hero h1 span { font-weight: 300; }
.hero h1 em { font-style: normal; color: var(--g-light); }
.hero p { font-size: var(--lead); color: rgba(255,255,255,.85); max-width: 44ch; margin-bottom: 34px; }

.hero-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  font-weight: 600; font-size: .95rem;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.hero-btn .c { width: 26px; height: 26px; border-radius: 50%; background: var(--g); display: grid; place-items: center; transition: transform var(--t); }
.hero-btn .c svg { width: 13px; height: 13px; }
.hero-btn:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.hero-btn:hover .c { transform: translateX(3px); }

/* 좌측 슬라이드 카운터 */
.h-count {
  position: absolute; left: max(var(--pad), calc(50% - var(--wrap)/2 + 4px)); bottom: 34px;
  z-index: 4; display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.75); font-size: .8rem; letter-spacing: .1em;
}
.h-count .bar { width: 72px; height: 1px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.h-count .bar i { position: absolute; top: 0; left: 0; height: 100%; width: 33.33%; background: var(--g-light); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.h-count .now { color: #fff; font-weight: 700; font-size: 1rem; }

/* 우측 도트 */
.h-dots { position: absolute; right: max(var(--pad), calc(50% - var(--wrap)/2 + 4px)); top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 14px; }
.h-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.34); transition: background var(--t), transform var(--t); }
.h-dots button[aria-current="true"] { background: var(--g-light); transform: scale(1.5); }

/* 스크롤 안내 */
.h-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .18em;
}
.h-scroll .m { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); animation: drop 2.1s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ================= Section 공통 ================= */
.sec { padding: var(--sec) 0; }
.ph + .sec { padding-top: clamp(2.4rem, 1.4rem + 3vw, 4rem); }
.sec.tint { background: var(--paper-2); }
.sec.ink { background: var(--ink); color: rgba(255,255,255,.72); }
.sec.ink h2, .sec.ink h3 { color: #fff; }

.kick {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--xs); font-weight: 700; letter-spacing: .2em; color: var(--g);
  margin-bottom: 14px;
}
.kick::before { content: ''; width: 26px; height: 1px; background: currentColor; }

.head h2 { font-size: var(--d2); margin-bottom: 16px; }
.head p { font-size: var(--lead); color: var(--muted); max-width: 58ch; }
.head.mid { text-align: center; }
.head.mid .kick { justify-content: center; }
.head.mid p { margin-left: auto; margin-right: auto; }

/* ================= 소개 (split) ================= */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.shot { position: relative; overflow: hidden; border-radius: 3px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.shot:hover img { transform: scale(1.05); }
.shot.tall { aspect-ratio: 4/5; }
.shot.wide { aspect-ratio: 3/2; }
.shot .tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--g); color: #fff; font-size: var(--xs); font-weight: 700;
  letter-spacing: .1em; padding: 12px 22px;
}
.shot .badge {
  position: absolute; right: -1px; top: -1px; z-index: 2;
  background: rgba(12,21,18,.82); backdrop-filter: blur(6px);
  color: #fff; padding: 18px 22px; text-align: right;
}
.shot .badge b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.shot .badge span { font-size: var(--xs); color: rgba(255,255,255,.7); }

.body-txt p { margin-bottom: 18px; }
.body-txt p:last-child { margin-bottom: 0; }

.mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 34px; }
.mini > div { background: var(--paper); padding: 22px 4px 22px 22px; }
.sec.tint .mini > div { background: var(--paper-2); }
.mini b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; }
.mini b i { font-style: normal; font-size: .5em; color: var(--g); margin-left: 2px; }
.mini span { font-size: var(--xs); color: var(--muted); }

/* 데스크톱: 스플릿 좌우 높이를 맞춰 여백이 뜨지 않게 */
@media (min-width: 901px) {
  .split { align-items: stretch; }
  .split > *:not(.shot) { align-self: center; }
  .split .shot.tall {
    aspect-ratio: auto;
    align-self: center;
    height: min(100%, 640px);
    min-height: 420px;
  }
  /* 가로 사진은 과도한 세로 크롭을 피하도록 높이를 제한 */
  .split .shot.wide {
    aspect-ratio: auto;
    align-self: center;
    height: min(100%, 430px);
    min-height: 330px;
  }
  .split .shot img { height: 100%; }
}

/* ================= 공정 ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; }
.step .pic { position: relative; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 18px; }
.step .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.step:hover .pic img { transform: scale(1.07); }
.step .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,20,16,.55)); }
.step .no {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff; font-weight: 800; font-size: .82rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ================= 숫자 밴드 ================= */
.band { position: relative; overflow: hidden; color: #fff; }
.band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,20,15,.9), rgba(6,20,15,.62)); }
.band .wrap { position: relative; z-index: 2; padding-top: var(--sec); padding-bottom: var(--sec); }
.band h2 { color: #fff; }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.16); margin-top: 46px; }
.fig { background: transparent; padding: 30px 10px 30px 26px; position: relative; }
.fig::before { content: ''; position: absolute; inset: 0; background: rgba(6,20,15,.35); z-index: -1; }
.fig b { display: block; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; }
.fig b i { font-style: normal; font-size: .42em; color: var(--g-light); margin-left: 3px; }
.fig span { font-size: var(--sm); color: rgba(255,255,255,.7); }

/* ================= 카드 ================= */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.card { background: var(--paper); }
.card .pic { overflow: hidden; aspect-ratio: 3/2; margin-bottom: 20px; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.card:hover .pic img { transform: scale(1.06); }
.card h3 { font-size: var(--d3); margin-bottom: 10px; }
.card p { font-size: .93rem; color: var(--muted); }
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: var(--sm); font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  transition: gap var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.more svg { width: 14px; height: 14px; }
.more:hover { gap: 14px; color: var(--g); border-color: var(--g); }

/* ================= 버튼 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 34px; font-size: .95rem; font-weight: 700;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.btn svg { width: 16px; height: 16px; }
.btn-g { background: var(--g); color: #fff; }
.btn-g:hover { background: var(--g-deep); transform: translateY(-2px); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn-o { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-o:hover { background: #fff; color: var(--ink); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--g); color: var(--g); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================= 표 ================= */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; }
table.t thead th { background: var(--ink); color: #fff; font-weight: 600; border-bottom: none; }
table.t thead th.hl { background: var(--g); }
table.t tbody th { text-align: left; color: var(--ink); font-weight: 600; background: var(--paper-2); }
table.t td.hl { background: var(--g-50); color: var(--g-deep); font-weight: 800; }

/* ================= 페이지 헤더 ================= */
.ph { position: relative; height: clamp(320px, 44vh, 460px); overflow: hidden; display: flex; align-items: flex-end; }
.ph .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,13,.66), rgba(6,16,13,.42) 45%, rgba(6,16,13,.78)); }
.ph .wrap { position: relative; z-index: 2; padding-bottom: clamp(2rem, 4vw, 3.6rem); }
.ph h1 { color: #fff; font-size: var(--d2); margin-bottom: 10px; }
.ph p { color: rgba(255,255,255,.8); font-size: var(--lead); max-width: 56ch; }
.ph .crumb { color: rgba(255,255,255,.6); font-size: var(--xs); margin-top: 14px; letter-spacing: .04em; }

/* ================= 탭 ================= */
.tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; padding: 18px 26px; font-size: .95rem; font-weight: 600;
  color: var(--muted); position: relative; white-space: nowrap;
  transition: color var(--t-fast);
}
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--g); transform: scaleX(0); transition: transform var(--t); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.panel { display: none; }
.panel.on { display: block; animation: rise .5s cubic-bezier(.22,1,.36,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel h2 { font-size: var(--d3); margin-bottom: 18px; }
.panel h3 { font-size: 1.1rem; margin: 34px 0 12px; }
.panel p { margin-bottom: 16px; }
.pull { font-size: var(--lead); font-weight: 700; color: var(--ink); line-height: 1.6; padding-left: 18px; border-left: 3px solid var(--g); margin-bottom: 26px; }
.bullets li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: .94rem; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; background: var(--g); border-radius: 50%; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: #fff; padding: 22px; }
.facts .k { font-size: var(--xs); color: var(--muted); letter-spacing: .06em; }
.facts .v { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.facts .s { font-size: var(--xs); color: var(--muted); }

.note { background: var(--g-50); border-left: 3px solid var(--g); padding: 22px 24px; margin: 26px 0; }
.note strong { color: var(--ink); }

.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px var(--g-50); }
.tl-item .y { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.tl-item li { font-size: .9rem; color: var(--muted); }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.certs > div { background: #fff; padding: 24px; }
.certs h4 { font-size: .98rem; color: var(--ink); margin-bottom: 6px; }
.certs p { font-size: var(--xs); color: var(--muted); line-height: 1.65; margin: 0; }

/* ================= CTA ================= */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; }
.cta .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,15,.82), rgba(4,80,58,.78)); }
.cta .wrap { position: relative; z-index: 2; padding: var(--sec) var(--pad); }
.cta h2 { color: #fff; font-size: var(--d2); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.82); font-size: var(--lead); max-width: 52ch; margin: 0 auto 32px; }
.cta .btns { justify-content: center; }

/* ================= Footer ================= */
.ft { background: var(--ink); color: rgba(255,255,255,.6); padding: clamp(3rem, 5vw, 5rem) 0 0; font-size: .9rem; }
.ft-top { display: grid; grid-template-columns: minmax(240px, 1fr) 1.7fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-brand img { width: 200px; margin-bottom: 20px; }
.ft-brand p { font-size: var(--xs); line-height: 2; color: rgba(255,255,255,.5); }
.ft-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ft-nav h4 { color: #fff; font-size: .875rem; margin-bottom: 14px; }
.ft-nav ul { display: flex; flex-direction: column; gap: 9px; }
.ft-nav a { font-size: var(--xs); color: rgba(255,255,255,.5); transition: color var(--t-fast); }
.ft-nav a:hover { color: var(--g-light); }
.ft-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; }
.ft-bot .cp { font-size: var(--xs); color: rgba(255,255,255,.32); }

.vsw { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vsw .lb { font-size: var(--xs); color: rgba(255,255,255,.35); }
.vsw .grp { display: inline-flex; border: 1px solid rgba(255,255,255,.16); }
.vsw button { padding: 9px 18px; font-size: var(--xs); font-weight: 700; color: rgba(255,255,255,.6); transition: background var(--t-fast), color var(--t-fast); }
.vsw button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.vsw .alt { font-size: var(--xs); color: rgba(255,255,255,.38); text-decoration: underline; text-underline-offset: 3px; }
.vsw .alt:hover { color: var(--g-light); }

/* ================= Back to top ================= */
.top { position: fixed; right: 26px; bottom: 26px; z-index: 990; width: 46px; height: 46px; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast); }
.top.show { opacity: 1; visibility: visible; transform: none; }
.top:hover { background: var(--g); }
.top svg { width: 16px; height: 16px; }

/* ================= Reveal ================= */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }

.mbar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr; }
  .hd nav { display: none; }
  .h-dots { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .burger { display: flex; }
  .hd .util { display: none; }
  .hd .logo img { width: 168px; }

  .hd nav {
    display: block; position: fixed; inset: 0 0 0 auto;
    width: min(88vw, 360px); background: #fff; z-index: 999;
    padding: calc(var(--header-h) + 16px) 0 40px;
    transform: translateX(102%); transition: transform .38s cubic-bezier(.22,1,.36,1);
    overflow-y: auto; box-shadow: -24px 0 60px -30px rgba(0,0,0,.5);
    visibility: hidden;
  }
  .hd nav.open { transform: none; visibility: visible; }
  .hd nav > ul { flex-direction: column; gap: 0; padding: 0 22px; }
  .hd nav > ul > li { border-bottom: 1px solid var(--line); }
  .hd nav > ul > li > a { color: var(--ink) !important; font-size: 1.05rem; padding: 17px 2px; }
  .hd nav > ul > li > a::after { display: none; }
  .hd nav .m-util { display: grid; gap: 10px; padding: 24px 22px 0; }
  .hd nav .m-util a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-weight: 700; font-size: .92rem; }

  .hero { height: 88svh; min-height: 520px; }
  .hero p { max-width: none; }
  .hero .kick { margin-bottom: 16px; }
  .h-count { left: var(--pad); bottom: 96px; flex-direction: row; align-items: center; gap: 10px; }
  .h-count .bar { width: 60px; height: 1px; }
  .h-count .bar i { width: 33.33%; height: 100%; }
  .h-scroll { display: none; }

  .sec { padding: clamp(2.6rem, 1.4rem + 4vw, 3.6rem) 0; }
  .card .pic { aspect-ratio: 16/9; margin-bottom: 14px; }
  .grid3 { gap: 26px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .split.rev > *:first-child { order: 2; }
  .shot.tall { aspect-ratio: 3/2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .step .pic { margin-bottom: 12px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .84rem; }
  .figs { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .fig { padding: 22px 8px 22px 18px; }
  .mini { margin-top: 26px; }

  table.t { font-size: .82rem; }
  table.t th, table.t td { padding: 11px 10px; }

  .tabs button { padding: 15px 18px; font-size: .9rem; }
  .ft-top { grid-template-columns: 1fr; gap: 30px; }
  .ft-nav { grid-template-columns: repeat(2, 1fr); }
  .ft-bot { flex-direction: column; align-items: flex-start; }

  .mbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 995;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: .72rem; font-weight: 700; color: var(--ink); }
  .mbar a svg { width: 17px; height: 17px; }
  .mbar a.hi { color: var(--g); }
  body { padding-bottom: 56px; }
  .top { right: 14px; bottom: 70px; width: 40px; height: 40px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .step .pic { aspect-ratio: 1/1; }
  .step h3 { font-size: .95rem; }
  .step p { font-size: .8rem; }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .mini { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .slide .bg, .slide.on .bg { transform: none; }
}
