/* K Selective India — shared styles (Concept C: Founder-Led) */
:root {
  --ivory: #F6F3ED; --charcoal: #202522; --ink: #161a18; --sage: #A6AD97; --sand: #B59B7B; --white: #FFFFFF;
  --line-d: rgba(246, 243, 237, .14); --muted-d: rgba(246, 243, 237, .64);
  --line-l: rgba(32, 37, 34, .14); --muted-l: rgba(32, 37, 34, .64);
  --display: "Inter Tight", "Pretendard", system-ui, sans-serif;
  --sans: "Inter", "Pretendard", system-ui, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html:lang(ko) { --display: "Pretendard", system-ui, sans-serif; --sans: "Pretendard", system-ui, sans-serif; }
html:lang(ko) body { word-break: keep-all; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--charcoal); color: var(--ivory); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--charcoal); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Sections */
.sec { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.sec--light { background: var(--ivory); color: var(--charcoal); }
.sec--ink { background: var(--ink); }
.sec--tight { padding: clamp(56px, 8vw, 96px) 0; }
.sec--light .muted { color: var(--muted-l); }
.muted { color: var(--muted-d); }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sand); }
.sec--light .eyebrow { color: #737a66; }
.h-xl { font: 500 clamp(40px, 5.6vw, 88px)/1 var(--display); letter-spacing: -.045em; }
.h-lg { font: 500 clamp(34px, 4.4vw, 64px)/1.04 var(--display); letter-spacing: -.04em; }
.h-md { font: 500 clamp(26px, 2.6vw, 38px)/1.12 var(--display); letter-spacing: -.03em; }
.h-sm { font: 500 20px/1.3 var(--display); letter-spacing: -.015em; }
html:lang(ko) .h-xl { font-weight: 600; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.2; }
html:lang(ko) .h-lg { font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.24; }
html:lang(ko) .h-md { font-weight: 600; line-height: 1.3; }
.accent { color: var(--sand); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 620px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head > p { max-width: 520px; justify-self: end; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; background: var(--ivory); color: var(--charcoal); font: 500 14px/1 var(--sans); white-space: nowrap; overflow: hidden; isolation: isolate; cursor: pointer; border: 0; transition: color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-d); }
.btn--line::before { background: var(--ivory); }
.btn--line:hover { color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark::before { background: var(--sand); }
.btn--dark:hover { color: var(--charcoal); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, backdrop-filter .4s, transform .5s var(--ease); }
.site-header.scrolled { background: rgba(22, 26, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-d); }
.site-header.hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 0 var(--gutter); gap: 24px; color: var(--ivory); }
.mark { font: 600 15px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.mark span { color: var(--sand); }
nav.primary { display: flex; gap: 30px; font-size: 14px; color: var(--muted-d); }
nav.primary a { position: relative; transition: color .25s; }
nav.primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--ivory); }
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; font: 500 12px var(--sans); letter-spacing: .08em; }
.lang button { background: none; border: 0; color: var(--muted-d); padding: 6px; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line-d); }
.lang button[aria-pressed="true"] { color: var(--ivory); }
.tools > .btn { transition: color .45s var(--ease), opacity .45s, transform .6s var(--ease), visibility 0s; }
.cta-off .tools > .btn { opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .3s, transform .5s var(--ease), visibility 0s .3s; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-d); color: var(--ivory); font: 500 13px var(--sans); padding: 9px 14px; cursor: pointer; }
.menu-btn i { position: relative; width: 14px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 6.5px; }
.menu-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 40; background: var(--charcoal); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden; }
.menu-open .mobile-nav { clip-path: inset(0); visibility: visible; }
.mobile-nav ul a { display: block; font: 500 clamp(30px, 8vw, 44px)/1.35 var(--display); letter-spacing: -.03em; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .mobile-nav ul a { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i, 0) * .05s); }
.mobile-nav ul a[aria-current="page"] { color: var(--sand); }
.mobile-nav .btn { justify-content: center; }
.menu-open { overflow: hidden; }

/* Page hero (sub pages) */
.page-hero { position: relative; padding: clamp(150px, 20vh, 220px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero .h-xl { max-width: 16ch; }
html:lang(ko) .page-hero .h-xl { max-width: 20ch; }
.page-hero .lead { margin-top: 32px; color: var(--muted-d); }
.page-hero .actions { margin-top: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Line reveal headline: wrap each line in .ln > span */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.js .ln > span { transform: translateY(108%); transition: transform 1.15s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .1s; }
.ln:nth-child(3) > span { transition-delay: .2s; }
.js .is-ready .ln > span { transform: none; }
.js [data-reveal] .ln > span { transform: translateY(108%); }
.js [data-reveal].in .ln > span { transform: none; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="mask"].in { clip-path: inset(0); }
.rule { height: 1px; background: currentColor; opacity: .18; }
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.in .rule, .rule.in { transform: scaleX(1); }

/* Scroll-scrub words */
.js [data-scrub] .w { opacity: .16; transition: opacity .25s linear; }
[data-scrub] .w.on { opacity: 1; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-d); padding: 22px 0; white-space: nowrap; }
.sec--light .marquee, .marquee--light { border-color: var(--line-l); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 42s linear infinite; padding-right: 48px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 clamp(20px, 2.4vw, 32px)/1 var(--display); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sand); }
.marquee-track span.dim { color: var(--muted-d); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line-d); background: rgba(246, 243, 237, .02); transition: background .5s, border-color .5s, transform .6s var(--ease-out); }
.card:hover { background: rgba(246, 243, 237, .05); border-color: rgba(246, 243, 237, .28); }
.sec--light .card { border-color: var(--line-l); background: rgba(255, 255, 255, .45); }
.sec--light .card:hover { background: var(--white); border-color: rgba(32, 37, 34, .3); }
.card .num { display: block; font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--sand); margin-bottom: 40px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--muted-d); }
.sec--light .card p { color: var(--muted-l); }

/* Numbered list rows */
.rows { border-top: 1px solid var(--line-d); }
.sec--light .rows { border-color: var(--line-l); }
.row { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px 40px; padding: 34px 0; border-bottom: 1px solid var(--line-d); align-items: baseline; transition: padding .5s var(--ease-out); }
.sec--light .row { border-color: var(--line-l); }
.row:hover { padding-left: 14px; }
.row .num { font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--sand); }
.row p { color: var(--muted-d); max-width: 560px; }
.sec--light .row p { color: var(--muted-l); }

/* Process line: .process > li ; animated rail */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 44px; }
.process::before, .process::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; }
.process::before { background: var(--line-d); }
.process::after { background: var(--sand); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
.sec--light .process::before { background: var(--line-l); }
.process li { position: relative; }
.process li::before { content: ""; position: absolute; top: -44px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--charcoal); border: 1px solid var(--line-d); transition: background .4s, border-color .4s, transform .4s var(--ease-out); }
.sec--light .process li::before { background: var(--ivory); border-color: rgba(32, 37, 34, .3); }
.process li.on::before { background: var(--sand); border-color: var(--sand); transform: scale(1.15); }
.process .step { display: block; font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--sand); margin-bottom: 14px; }
.process h3 { font: 500 clamp(20px, 1.8vw, 26px)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.process p { font-size: 14px; color: var(--muted-d); }
.sec--light .process p { color: var(--muted-l); }

/* CTA block */
.cta-block { position: relative; overflow: hidden; text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.cta-block .h-xl { max-width: 14ch; margin: 0 auto; }
html:lang(ko) .cta-block .h-xl { max-width: 18ch; }
.cta-block .actions { justify-content: center; margin-top: 40px; }
.cta-block .orbit { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .5; }
.orbit circle { fill: none; stroke: var(--line-d); }
.orbit .dot { fill: var(--sand); stroke: none; }
.orbit g { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.orbit g:nth-of-type(2) { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--ink); padding: 72px 0 32px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.foot-top .mark { font-size: 20px; display: inline-block; margin-bottom: 16px; }
.foot-top p { color: var(--muted-d); max-width: 360px; }
.foot-top h4 { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.foot-top li { margin-bottom: 10px; }
.foot-top li a { color: var(--muted-d); transition: color .25s; }
.foot-top li a:hover { color: var(--ivory); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: var(--muted-d); font-size: 13px; }
.foot-bottom a:hover { color: var(--ivory); }
.foot-word { font: 600 clamp(56px, 13vw, 220px)/.8 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-d); margin-top: 56px; white-space: nowrap; overflow: hidden; user-select: none; }

/* Page transition veil */
.veil { position: fixed; inset: 0; z-index: 90; background: var(--ink); pointer-events: none; transform: translateY(0); transition: transform .75s var(--ease); }
.is-ready .veil { transform: translateY(-101%); }
.leaving .veil { transform: translateY(0); transition: transform .5s var(--ease); }
.veil.from-bottom { transform: translateY(101%); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.field label .req { color: var(--sand); }
.field input, .field select, .field textarea { font: 400 16px/1.5 var(--sans); color: var(--charcoal); background: transparent; border: 0; border-bottom: 1px solid rgba(32, 37, 34, .3); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s; appearance: none; -webkit-appearance: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23202522' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); }
.field .err { font-size: 13px; color: #a2492f; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a2492f; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .ln > span, [data-reveal] .ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-scrub] .w { opacity: 1; }
  .veil { display: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  nav.primary { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tools > .btn { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head > p { justify-self: start; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .row:hover { padding-left: 0; }
  .process { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-left: 36px; }
  .process::before, .process::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .process li::before { top: 2px; left: -36px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
