/* ==========================================================================
   Ify Lights Stage & Studio
   Palette: KOSEFX navy, white, teal-to-blue (from the KOSEFX logo)
   Type: Montserrat (display, matches the logo), Inter (text)
   ========================================================================== */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --ink: #0e0f26;
    --ink-2: #13142f;
    --ink-3: #1b1c40;
    --line: rgba(244, 247, 251, 0.10);
    --line-2: rgba(244, 247, 251, 0.18);
    --paper: #f4f7fb;
    --muted: #a3abc6;
    --dim: #6e7699;
    --amber: #46e6d5;
    --amber-2: #1da3d1;
    --amber-soft: rgba(70, 230, 213, 0.12);
    --grad: linear-gradient(100deg, #46e6d5 0%, #22b8d4 55%, #1b8ccb 100%);
    --wa: #25d366;
    --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --text: "Inter", "Helvetica Neue", Arial, sans-serif;
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 28px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.6;
    background: var(--ink);
    color: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* film grain over everything */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 3000; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--amber); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .brand-name, .btn, .chip, .eyebrow, .kicker, .stats dt, .step-no, .sol-no { font-family: var(--display); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
h2 em { font-size: 1.08em; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
    margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
    transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
}
.btn .ic { font-size: 1.1em; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 40px -12px  rgba(70, 230, 213, .65); }
.btn-amber:hover { background: #7af0e3; transform: translateY(-2px); box-shadow: 0 16px 48px -12px  rgba(70, 230, 213, .8); }
.btn-ghost { border-color: var(--line-2); color: var(--paper); background: rgba(244, 247, 251, .03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn-ghost .ic { transition: transform .35s var(--ease); }
.btn-ghost:hover .ic { transform: translateX(3px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(14, 15, 38, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gutter); display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.05; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--text); font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
#site-nav { display: flex; gap: .25rem; margin-left: auto; }
#site-nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: rgba(244, 247, 251, .78); padding: .5rem .85rem; border-radius: 999px; transition: color .25s, background .25s; }
#site-nav a:hover { color: var(--paper); background: rgba(244, 247, 251, .06); }
#site-nav .nav-cta-mobile { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 0 2.5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(180deg, rgba(14, 15, 38,.45) 0%, rgba(14, 15, 38,.05) 30%, rgba(14, 15, 38,.45) 68%, var(--ink) 100%),
        linear-gradient(90deg, rgba(14, 15, 38,.85) 0%, rgba(14, 15, 38,.35) 55%, rgba(14, 15, 38,.1) 100%); }
.hero-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 40%),  rgba(70, 230, 213, .16), transparent 60%);
    transition: background .1s; mix-blend-mode: screen; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: end; width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; color: rgba(244, 247, 251,.85); padding: .45rem 1rem .45rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(14, 15, 38,.35); backdrop-filter: blur(10px); margin-bottom: 1.8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0  rgba(70, 230, 213,.7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px  rgba(70, 230, 213,0); } 100% { box-shadow: 0 0 0 0  rgba(70, 230, 213,0); } }
.hero h1 { font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: .88; letter-spacing: -0.055em; font-weight: 600; max-width: 11ch; }
.hero h1 em { font-size: 1.1em; letter-spacing: -0.02em; padding-right: .04em; }
.lead { margin-top: 1.8rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(244, 247, 251,.8); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-card { display: block; text-decoration: none; border-radius: var(--r); overflow: hidden; background: rgba(21, 22, 56,.6); border: 1px solid var(--line-2); backdrop-filter: blur(16px); transition: transform .5s var(--ease), border-color .3s; }
.hero-card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--amber); }
.hero-card-img { display: block; aspect-ratio: 4/5; overflow: hidden; }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-card:hover .hero-card-img img { transform: scale(1.06); }
.hero-card-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.15rem; }
.hero-card-body .eyebrow { margin: 0; font-size: .68rem; }
.hero-card-body strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hero-card-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid var(--line-2); }
.stats > div { padding: 1.4rem 1.5rem 0 0; }
.stats > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stats dd { color: var(--muted); font-size: .9rem; margin-top: .45rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 1.3rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.03em; padding: 0 1.6rem; white-space: nowrap; color: rgba(244, 247, 251,.9); }
.marquee span:nth-child(4n+1) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); letter-spacing: 0; }
.marquee i { font-style: normal; color: var(--dim); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 820px; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
.section-head-split h2 { margin-bottom: 0; }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.sol { grid-column: span 2; position: relative; display: block; min-height: 440px; border-radius: var(--r); overflow: hidden; text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.sol:nth-child(1), .sol:nth-child(2) { grid-column: span 3; min-height: 520px; }
.sol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.sol::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 15, 38,0) 25%, rgba(14, 15, 38,.55) 55%, rgba(14, 15, 38,.95) 100%); transition: opacity .5s; }
.sol:hover img { transform: scale(1.07); filter: saturate(1.1); }
.sol-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; }
.sol-no { font-size: .8rem; color: var(--amber); letter-spacing: .1em; }
.sol strong { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.sol-text { color: rgba(244, 247, 251,.78); max-width: 42ch; font-size: .98rem; }
.sol-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 600; font-size: .92rem; color: var(--amber); }
.sol-link .ic { transition: transform .35s var(--ease); }
.sol:hover .sol-link .ic { transform: translateX(5px); }

/* ---------- Equipment ---------- */
.section-equipment { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 18%, var(--ink-2) 100%); border-top: 1px solid var(--line); }
.toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .92rem; font-weight: 500; transition: all .3s var(--ease); }
.chip span { font-family: var(--text); font-size: .72rem; min-width: 1.5rem; padding: .1rem .4rem; border-radius: 999px; background: rgba(244, 247, 251,.08); color: var(--muted); }
.chip:hover { border-color: var(--paper); }
.chip.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip.active span { background: rgba(14, 15, 38,.12); color: var(--ink); }
.search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); min-width: 280px; color: var(--muted); transition: border-color .3s; }
.search:focus-within { border-color: var(--amber); }
.search input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; color: var(--paper); font: inherit; font-size: .95rem; }
.search input::placeholder { color: var(--dim); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .5s var(--ease), border-color .35s, box-shadow .5s; }
.card:hover { transform: translateY(-6px); border-color:  rgba(70, 230, 213,.45); box-shadow: 0 30px 60px -30px  rgba(29, 163, 209,.35); }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; cursor: zoom-in; background: #15163a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 38,.35), transparent 30%, transparent 70%, rgba(14, 15, 38,.4)); pointer-events: none; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: rgba(14, 15, 38,.6); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--paper); }
.card-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); opacity: 0; transform: scale(.7); transition: all .4s var(--ease); }
.card:hover .card-zoom, .card-media:focus-visible .card-zoom { opacity: 1; transform: none; }
.card-body { padding: 1.2rem 1.25rem .4rem; flex: 1; }
.card-body h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.25rem 1.25rem; }
.card-view { font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.card-view:hover { color: var(--paper); border-color: var(--paper); }
.card-wa { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .55rem 1rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber); border: 1px solid  rgba(70, 230, 213,.3); transition: all .3s var(--ease); }
.card-wa:hover { background: var(--amber); color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.empty a { color: var(--amber); }

/* ---------- Quote band ---------- */
.quote-band { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 6rem 0; }
.quote-band > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.quote-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink-2) 0%, rgba(14, 15, 38,.55) 25%, rgba(14, 15, 38,.55) 75%, var(--ink) 100%), radial-gradient(ellipse at center, transparent 0%, rgba(14, 15, 38,.6) 80%); }
blockquote { max-width: 1100px; margin: 0 auto; text-align: center; }
blockquote p { font-family: var(--display); font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
blockquote em { font-size: 1.1em; }
blockquote cite { display: block; margin-top: 2rem; font-style: normal; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 2.2rem 2rem 0 0; position: relative; }
.steps li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--amber); transition: width 1.2s var(--ease) .2s; }
.steps li.in::before { width: 64px; }
.steps li + li::before { left: 2rem; }
.step-no { display: block; font-size: 4.2rem; font-weight: 300; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244, 247, 251,.35); margin-bottom: 1.5rem; }
.steps h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: .5rem; }
.steps p { color: var(--muted); max-width: 34ch; }

/* ---------- About ---------- */
.section-about { background: var(--ink-2); border-block: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.am-1 { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); }
.am-2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); border: 6px solid var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.am-badge { position: absolute; left: -14px; top: 10%; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.15; padding: 1rem 1.2rem; border-radius: 14px; transform: rotate(-4deg); box-shadow: 0 20px 40px -18px  rgba(29, 163, 209,.8); }
.am-badge em { color: var(--ink); font-size: 1.15em; }
.about-copy h2 { margin-bottom: 1.6rem; }
.about-copy > p { color: rgba(244, 247, 251,.78); font-size: 1.05rem; margin-bottom: 1.1rem; max-width: 58ch; }
.why { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.why li { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.why strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.why span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head h2 { margin-bottom: 1.2rem; }
.faq-head .btn { margin-top: 1.8rem; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--amber); }
.plus { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
details[open] .plus { background: var(--amber); border-color: var(--amber); color: var(--ink); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.ans p { color: var(--muted); font-size: 1.02rem; padding: 0 3.5rem 1.6rem 0; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; isolation: isolate; }
.contact > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 15, 38,.95) 0%, rgba(14, 15, 38,.8) 50%, rgba(14, 15, 38,.6) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 25%, transparent 75%, var(--ink) 100%); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.contact-copy h2 { margin-bottom: 1.3rem; }
.contact-copy .btn { margin-top: 2rem; }
.contact-list { list-style: none; margin-top: 2rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: rgba(244, 247, 251,.85); }
.contact-list .ic { color: var(--amber); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-list a:hover { border-color: var(--amber); }
.form { background: rgba(21, 22, 56,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
.form h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; }
.form label span { font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: .9rem 1rem; background: rgba(14, 15, 38,.6); border: 1px solid var(--line-2); border-radius: 12px; color: var(--paper); font: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px  rgba(70, 230, 213,.12); }
.form .btn { margin-top: .4rem; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.3rem; font-size: .92rem; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff9b85; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { color: var(--muted); margin: 1.2rem 0 1.5rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 1.1rem; transition: all .3s var(--ease); }
.socials a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); transform: translateY(-3px); }
.footer h4 { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; color: rgba(244, 247, 251,.8); }
.footer ul a { text-decoration: none; transition: color .25s; }
.footer ul a:hover { color: var(--amber); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.footer-base a { color: var(--muted); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1100; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; font-size: 1.9rem; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(8,8,9,.96); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 4.5rem 5.5rem; animation: fade .3s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 3rem; align-items: center; width: 100%; max-width: 1200px; max-height: 100%; }
.lb-media { display: flex; justify-content: center; }
.lb-media img { max-height: calc(100vh - 9rem); max-width: 100%; border-radius: var(--r); object-fit: contain; background: #15163a; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.lb-info .tag { position: static; display: inline-block; margin-bottom: 1.2rem; }
.lb-info h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 1rem; }
.lb-info p { color: var(--muted); margin-bottom: 1.8rem; }
.lb-count { font-size: .85rem; margin: 1.5rem 0 0 !important; color: var(--dim) !important; letter-spacing: .1em; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(244, 247, 251,.04); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; transition: all .3s var(--ease); }
.lb-btn:hover { background: var(--paper); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
body.lb-open .wa-float { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .solutions { grid-template-columns: repeat(2, 1fr); }
    .sol, .sol:nth-child(1), .sol:nth-child(2) { grid-column: span 1; min-height: 420px; }
    .sol:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 960px) {
    #site-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: .2rem; padding: 6rem var(--gutter) 2rem; background: rgba(14, 15, 38,.97); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
    #site-nav.show { opacity: 1; visibility: visible; }
    #site-nav a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.04em; color: var(--paper); padding: .2rem 0; background: none !important; }
    #site-nav .nav-cta-mobile { display: block; }
    .menu-toggle { display: block; margin-left: auto; }
    .nav-cta { display: none; }
    .site-header.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; }
    .section-head-split, .about, .faq, .contact-grid { grid-template-columns: 1fr; }
    .faq-head { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.4rem; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .steps li + li::before { left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .lightbox { padding: 4.5rem 1rem 1.5rem; align-items: flex-start; overflow-y: auto; }
    .lb-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .lb-media img { max-height: 60vh; }
    .lb-prev, .lb-next { top: calc(4.5rem + 30vh); width: 44px; height: 44px; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .bar { padding: .8rem var(--gutter); }
    .hero { padding-top: 7rem; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .hero-actions .btn { flex: 1 1 100%; }
    .stats dd { font-size: .82rem; }
    .solutions { grid-template-columns: 1fr; }
    .sol, .sol:nth-child(1), .sol:nth-child(2), .sol:nth-child(5) { grid-column: auto; min-height: 380px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .3rem; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .search { min-width: 0; width: 100%; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .card-body { padding: .9rem .85rem .2rem; }
    .card-body h3 { font-size: .98rem; }
    .card-body p { font-size: .82rem; -webkit-line-clamp: 2; }
    .card-foot { padding: .8rem .85rem 1rem; }
    .card-view { display: none; }
    .card-wa { width: 100%; justify-content: center; padding: .55rem .5rem; font-size: .85rem; }
    .card-zoom { opacity: 1; transform: none; width: 34px; height: 34px; }
    .tag { font-size: .6rem; top: 8px; left: 8px; padding: .28rem .55rem; }
    .why li { grid-template-columns: 1fr; gap: .2rem; }
    .field-row { grid-template-columns: 1fr; }
    .ans p { padding-right: 0; }
    .am-badge { left: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .quote-band { min-height: 60vh; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
main, .section-equipment { overflow-x: clip; }

/* ==========================================================================
   v3: fixed background videos + sliding/rotating images
   ========================================================================== */
/* Fixed videos: the video stays still while the section scrolls over it */
.bg-fixed { position: absolute; inset: 0; z-index: -3; clip-path: inset(0); background: #0e0f26; }
.bg-video { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; pointer-events: none; }
.hero .bg-fixed + .hero-shade { background:
    linear-gradient(180deg, rgba(14, 15, 38,.5) 0%, rgba(14, 15, 38,.1) 30%, rgba(14, 15, 38,.5) 68%, var(--ink) 100%),
    linear-gradient(90deg, rgba(14, 15, 38,.85) 0%, rgba(14, 15, 38,.35) 55%, rgba(14, 15, 38,.15) 100%); }
.contact-shade { background: linear-gradient(90deg, rgba(14, 15, 38,.94) 0%, rgba(14, 15, 38,.78) 50%, rgba(14, 15, 38,.55) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 25%, transparent 75%, var(--ink) 100%); }

/* Hero card: rotating product photos */
.hero-card { cursor: default; }
.hero-card-img { position: relative; cursor: zoom-in; }
.hc-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 4.5s linear; }
.hc-slide.on { opacity: 1; transform: scale(1); }
.hc-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(244, 247, 251,.25); overflow: hidden; z-index: 1; }
.hc-progress i { display: block; height: 100%; width: 0; background: var(--amber); }
.hc-progress i.run { animation: hcbar var(--hc, 3.8s) linear forwards; }
@keyframes hcbar { to { width: 100%; } }
.hero-card-body strong { min-height: 2.5em; transition: opacity .4s; }
button.hero-card-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .85rem; color: var(--amber); text-align: left; }

/* Generic slider */
.slider { position: relative; }
.track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 3 * 1.25rem) / 4); }
.arrows { display: flex; gap: .5rem; }
.arr { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(244, 247, 251,.03); display: grid; place-items: center; cursor: pointer; transition: all .3s var(--ease); }
.arr:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sbar { height: 2px; background: var(--line); margin-top: 1.4rem; border-radius: 2px; overflow: hidden; }
.sbar i { display: block; height: 100%; width: 20%; background: var(--amber); border-radius: 2px; transition: transform .5s var(--ease), width .3s; transform-origin: left; }

/* Solutions slider */
.slider-sol .track > .sol { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); grid-column: auto; min-height: 480px; }
.slider-sol .sol:nth-child(1), .slider-sol .sol:nth-child(2) { min-height: 480px; }
.slider-ui { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.dots { display: flex; gap: .45rem; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; transition: width .4s var(--ease), background .3s; }
.dots button.on { width: 28px; background: var(--amber); }

/* Equipment rows */
.rows { display: grid; gap: 3.2rem; }
.row[hidden] { display: none; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.row-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: center; gap: .7rem; }
.row-head h3 span { font-family: var(--text); font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber); letter-spacing: 0; }
.row .card:hover { transform: translateY(-4px); }

/* About: crossfading image stacks */
.fader { overflow: hidden; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1.2s var(--ease), transform 6s linear; }
.fader img.on { opacity: 1; transform: scale(1); }
.about-media .am-1 { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); }
.about-media .am-2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; border-radius: var(--r); border: 6px solid var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); z-index: 1; }
.am-badge { z-index: 2; }

@media (max-width: 1100px) {
    .track > * { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
    .slider-sol .track > .sol { flex-basis: calc((100% - 1.25rem) / 2); min-height: 440px; }
}
@media (max-width: 640px) {
    .track { gap: .8rem; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scroll-padding: 0 var(--gutter); }
    .track > * { flex-basis: 62%; }
    .slider-sol .track > .sol { flex-basis: 86%; min-height: 400px; }
    .row-head .arrows { display: none; }
    .arr { width: 42px; height: 42px; }
    .rows { gap: 2.4rem; }
    .row .card-body p { -webkit-line-clamp: 2; }
    .bg-video { height: 100lvh; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-slide, .fader img { transition: opacity .01s !important; transform: none !important; }
}

/* Brand lockup */
.brand img { border-radius: 12px; box-shadow: 0 6px 20px -8px  rgba(70, 230, 213,.45); }
.brand-name > span em { font-size: 1.12em; color: var(--amber); }
.rows { grid-template-columns: minmax(0, 1fr); }
.row, .slider, .track { min-width: 0; }

/* KOSEFX wordmark */
.brand-name > span { font-weight: 800; letter-spacing: -0.01em; }
.brand-name > span b { color: var(--amber); font-weight: 800; }
.brand-name small i { font-family: var(--serif); font-style: italic; font-size: 1.35em; letter-spacing: 0; text-transform: none; color: var(--paper); margin-right: 1px; }

/* ==========================================================================
   KOSEFX brand: navy + teal-to-blue (matches the KOSEFX logo already on the products)
   ========================================================================== */
/* accent words: gradient text instead of the serif italic */
em, h2 em, .hero h1 em, blockquote em, .lb-info h3 em {
    font-family: var(--display); font-style: normal; font-weight: inherit; font-size: 1em !important; letter-spacing: inherit;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .02em;
}
h2 { font-weight: 700; letter-spacing: -0.03em; }
.hero h1 { font-weight: 800; letter-spacing: -0.045em; }
blockquote p { font-weight: 600; letter-spacing: -0.03em; }
.marquee span { font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; font-size: clamp(1.05rem, 2.1vw, 1.6rem); }
.marquee span:nth-child(4n+1) { font-family: var(--display); font-style: normal; font-weight: 600; letter-spacing: -0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-amber { background: var(--grad); color: #0e0f26; box-shadow: 0 10px 40px -12px rgba(34, 184, 212, .7); }
.btn-amber:hover { background: var(--grad); filter: brightness(1.08); }
.chip.active { background: var(--grad); color: #0e0f26; border-color: transparent; }
.card-wa:hover, .socials a:hover, .contact-icons a:hover { background: var(--grad); color: #0e0f26; border-color: transparent; }
.am-badge { background: var(--grad); color: #0e0f26; box-shadow: 0 20px 40px -18px rgba(29, 163, 209, .8); }
.am-badge em { background: none; color: #0e0f26; -webkit-background-clip: initial; background-clip: initial; font-weight: 700; }
.step-no { -webkit-text-stroke: 1px rgba(70, 230, 213, .45); }
.eyebrow { color: var(--amber); }
.dot { background: var(--amber); }
/* header / footer logo */
.brand-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; }
.brand-logo img { height: 46px; width: auto; display: block; }
.brand-logo small { font-family: var(--text); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 3px; }
.brand-logo small i { font-style: normal; color: var(--paper); text-transform: lowercase; letter-spacing: .04em; }
.footer .brand-logo img { height: 64px; }
@media (max-width: 640px) { .brand-logo img { height: 38px; } }
