:root {
  --blue: #3182f6; --blue-dark: #1b64da; --blue-soft: #eaf2fe;
  --ink: #191f28; --ink-2: #4e5968; --muted: #8b95a1;
  --line: #e5e8eb; --bg: #ffffff; --bg-soft: #f9fafb; --bg-soft-2: #f2f4f6;
  --radius: 24px; --radius-sm: 16px;
  --shadow: 0 8px 30px rgba(25,31,40,.06); --shadow-lg: 0 30px 70px rgba(25,31,40,.12);
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 7px 15px; border-radius: 999px; margin-bottom: 20px; }
.section-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.22; }
.section-title .accent { color: var(--blue); }
.section-lead { margin: 20px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 660px; line-height: 1.7; }
.sub-head { margin-top: 80px; text-align: center; }
.sub-head .k { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.sub-head .k .accent { color: var(--blue); }
.sub-head .d { margin-top: 10px; color: var(--muted); font-size: 15px; }
.hint { margin-top: 14px; color: var(--muted); font-size: 14px; }

section { padding: 118px 0; }
section.alt { background: var(--bg-soft); }

/* NAV */
header.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(229,232,235,.7); transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
header.nav.nav-hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s; }
@media (hover: hover) { .nav-links a:hover { color: var(--ink); background: var(--bg-soft-2); } }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .12s ease, background .15s, box-shadow .15s; }
@media (hover: hover) { .btn:hover { background: var(--blue-dark); transform: translateY(-2px); } }
.btn:active { transform: translateY(0); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.btn.big { padding: 17px 32px; font-size: 17px; border-radius: 16px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
@media (hover: hover) { .btn.ghost:hover { background: var(--bg-soft); border-color: var(--muted); } }
.btn.white { background: #fff; color: var(--blue-dark); }
@media (hover: hover) { .btn.white:hover { background: #f0f6ff; } }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; padding: 130px 0 100px; }
.hero .bg { position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(10,22,45,.55), rgba(10,22,45,.8)), url("../images/1731052649.jpg"); background-size: cover; background-position: center; background-color: #101b33; transform: scale(1.04); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 8vw, 84px); font-weight: 900; line-height: 1.1; letter-spacing: -0.045em; }
.hero .quote { margin: 32px auto 0; max-width: 560px; font-size: clamp(17px, 2.3vw, 22px); font-weight: 500; line-height: 1.85; color: rgba(255,255,255,.86); }
.checks { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.check { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.check .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; }
.hero-cta { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: 0.18em; font-weight: 600; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,9px)} }

/* MISSION / VISION */
.split { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: left; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.qcard .tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 6px 13px; border-radius: 999px; }
.qcard .big-q { margin-top: 20px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.45; color: var(--ink); }
.qcard p { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.qcard ul { margin-top: 16px; list-style: none; display: grid; gap: 10px; }
.qcard ul li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.qcard ul li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.qcard ul li b { font-weight: 700; color: var(--ink); }
details.more { margin-top: 16px; }
details.more > summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "자세히 보기 ▾"; }
details.more[open] > summary::after { content: "접기 ▴"; }
details.more .more-body { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.85; }

/* CARD GRID */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: left; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(49,130,246,.12), transparent 62%); pointer-events: none; }
@media (hover: hover) { .card:hover::before { opacity: 1; } }
.card > * { position: relative; z-index: 1; }
@media (hover: hover) { .card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(49,130,246,.35); } }
.card .ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--blue-soft); color: var(--blue); font-size: 23px; margin-bottom: 18px; transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s; }
@media (hover: hover) { .card:hover .ico { transform: scale(1.12) rotate(-6deg); background: var(--blue); color: #fff; } }
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.card .kw { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: 0.02em; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.72; }
.card ul { margin-top: 12px; list-style: none; display: grid; gap: 8px; }
.card ul li { display: flex; gap: 9px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.card ul li::before { content: "·"; color: var(--blue); font-weight: 900; flex: none; }

/* PRINCIPLE (읽기 편한 프로즈 카드 — How We Work) */
.principles { margin-top: 40px; display: grid; gap: 16px; text-align: left; }
.principle { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; transition: box-shadow .2s, transform .2s, border-color .2s; }
@media (hover: hover) { .principle:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; } }
.principle .n { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.principle h4 { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.principle .tail { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .principle { flex-direction: column; gap: 14px; padding: 26px; } }

/* ACCORDION */
.acc-list { margin-top: 36px; text-align: left; }
details.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
details.acc[open] { box-shadow: var(--shadow); border-color: transparent; }
details.acc > summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; gap: 16px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .num2 { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 900; }
details.acc > summary .tt { display: flex; flex-direction: column; gap: 3px; }
details.acc > summary .tt b { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
details.acc > summary .tt .pl { font-weight: 600; font-size: 13.5px; color: var(--muted); }
details.acc > summary .plus { margin-left: auto; font-size: 24px; color: var(--muted); font-weight: 300; transition: transform .25s; line-height: 1; }
details.acc[open] > summary .plus { transform: rotate(45deg); color: var(--blue); }
details.acc .body { padding: 4px 26px 24px 76px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
details.acc .body ul { list-style: none; display: grid; gap: 9px; }
details.acc .body ul li { display: flex; gap: 10px; }
details.acc .body ul li::before { content: "·"; color: var(--blue); font-weight: 900; flex: none; }
@media (max-width: 640px) { details.acc .body { padding-left: 26px; } }

/* STATS */
.stats { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 40px 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.stat .num { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
.stat .label { margin-top: 12px; color: var(--ink); font-weight: 700; font-size: 15px; }
.stat .desc { margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* HISTORY (연도 아코디언 + 분기) */
.year-acc { margin-top: 40px; text-align: left; }
details.year { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
details.year[open] { box-shadow: var(--shadow); border-color: transparent; }
details.year > summary { list-style: none; cursor: pointer; padding: 26px 30px; display: flex; align-items: center; gap: 18px; }
details.year > summary::-webkit-details-marker { display: none; }
details.year > summary .yr { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
details.year > summary .tl-desc { color: var(--muted); font-size: 14.5px; }
details.year > summary .plus { margin-left: auto; font-size: 26px; color: var(--muted); font-weight: 300; transition: transform .25s; }
details.year[open] > summary .plus { transform: rotate(45deg); color: var(--blue); }
.quarters { padding: 0 30px 26px; display: grid; gap: 18px; }
.q { border-left: 3px solid var(--blue-soft); padding-left: 18px; }
.q .qh { font-weight: 800; font-size: 15px; color: var(--blue); margin-bottom: 8px; }
.q ul { list-style: none; display: grid; gap: 6px; }
.q ul li { display: flex; gap: 9px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.q ul li::before { content: "·"; color: var(--muted); font-weight: 900; flex: none; }

/* STORES */
.stores { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: left; }
.store { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .store:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.store .em { font-size: 32px; }
.store b { font-size: 18px; font-weight: 800; }
.store span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.store .go { margin-left: auto; color: var(--blue); font-weight: 800; font-size: 22px; }

/* PANELS (do/dont) */
.panel { margin-top: 36px; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); background: #fff; text-align: left; }
.panel h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.03em; }
.panel .cat { margin-top: 24px; font-size: 14px; font-weight: 800; color: #f0506e; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel ul { list-style: none; display: grid; gap: 11px; margin-top: 14px; }
.panel li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.panel li::before { content: "✕"; color: #f0506e; font-weight: 900; flex: none; }

/* CHIPS (welfare) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.chip.hl { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); font-weight: 700; }

/* RECRUIT */
.ceo { margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px; text-align: left; }
.ceo .q { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.45; }
.ceo p { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.ceo .sign { margin-top: 18px; font-weight: 700; color: var(--ink); }
.ceo h4 { margin-top: 26px; font-size: 15px; font-weight: 800; }
.ceo ul { margin-top: 12px; list-style: none; display: grid; gap: 9px; }
.ceo ul li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ceo ul li::before { content: "✓"; color: var(--blue); font-weight: 900; flex: none; }

.recruit-card { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; text-align: left; box-shadow: var(--shadow); }
.recruit-card .badge { display: inline-block; font-size: 13px; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 6px 13px; border-radius: 999px; }
.recruit-card h3 { margin-top: 16px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -0.03em; }
.recruit-card .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.recruit-card .meta span { background: var(--bg-soft-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.rc-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.rc-grid h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.rc-grid ul { list-style: none; display: grid; gap: 9px; }
.rc-grid li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.rc-grid li::before { content: "•"; color: var(--blue); font-weight: 900; flex: none; }

/* ROADMAP */
.roadmap { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.roadmap .row { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); }
.roadmap .row:last-child { border-bottom: 0; }
.roadmap .t { background: var(--bg-soft); padding: 16px 20px; font-weight: 800; color: var(--blue); font-size: 14.5px; }
.roadmap .d { padding: 16px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 640px) { .roadmap .row { grid-template-columns: 1fr; } .roadmap .t { border-bottom: 1px solid var(--line); } }

/* STEPS */
.steps { margin-top: 18px; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; }
.step .sn { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step b { font-weight: 700; font-size: 15px; }
.step span { color: var(--muted); font-size: 13.5px; margin-left: 4px; }

.rc-note { margin-top: 26px; padding: 22px 24px; background: var(--blue-soft); border-radius: var(--radius-sm); color: var(--blue-dark); font-weight: 600; font-size: 15px; line-height: 1.7; text-align: left; }
.rc-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.file-chip .ic { font-size: 20px; }
.file-chip small { color: var(--muted); font-weight: 600; }
.social { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
@media (hover: hover) { .social a:hover { background: var(--bg-soft); } }

/* JOIN CTA */
.join { margin-top: 40px; background: linear-gradient(135deg, #3182f6, #1b64da); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; box-shadow: 0 30px 70px rgba(49,130,246,.35); }
.join h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.04em; }
.join p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.9); line-height: 1.7; }
.join .btn { margin-top: 28px; }

/* LOCATION */
.loc-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; text-align: left; }
.loc-info { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.loc-info .addr { font-size: 21px; font-weight: 800; line-height: 1.55; letter-spacing: -0.03em; }
.loc-info .sub { margin-top: 12px; color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.gallery { margin-top: 64px; }
.gallery h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, #dbe9ff, #eef4ff); border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.shot::after { content: "사옥 내부"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 14px; }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 44px; }
footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
footer .logo { color: #fff; }
footer .logo span { color: var(--blue); }
footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
footer nav a { font-size: 14px; color: rgba(255,255,255,.7); padding: 8px 12px; border-radius: 8px; }
@media (hover: hover) { footer nav a:hover { color: #fff; background: rgba(255,255,255,.08); } }
footer .copy { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(6px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease; transition-delay: var(--d, 0ms); will-change: opacity, transform, filter; }
.js .reveal.from-left { transform: translateX(-46px); }
.js .reveal.from-right { transform: translateX(46px); }
.js .reveal.zoom { transform: scale(.9); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* SCROLL PROGRESS BAR (토스식) */
.progress { position: fixed; top: 0; left: 0; height: 4.5px; width: 0%; z-index: 200; background: linear-gradient(90deg, #3182f6, #6aa8ff); transition: width .1s linear; }

/* NAV shadow on scroll */
header.nav.scrolled { box-shadow: 0 4px 20px rgba(25,31,40,.06); }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }

/* FLOATING TOP BUTTON */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; border: 0; cursor: pointer; font-size: 22px; box-shadow: 0 10px 30px rgba(49,130,246,.4); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s, transform .25s, visibility .25s, background .15s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .to-top:hover { background: var(--blue-dark); transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } .scroll-hint { animation: none; } .hero .bg { transform: none !important; } }

@media (max-width: 900px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .grid.two, .stores, .loc-grid, .rc-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 84px 0; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; }
  .nav-links .btn { margin-top: 12px; justify-content: center; border-radius: 14px; }
  .nav-toggle { display: block; }
  .grid.three, .stats, .gallery-grid { grid-template-columns: 1fr; }
  .join, .recruit-card, .ceo, .panel { padding: 32px 22px; }
  .loc-info { padding: 28px; }
}
