
  :root {
    --bg: #050505;
    --ink: #f2efe9;
    --muted: rgba(242, 239, 233, 0.55);
    --hairline: rgba(242, 239, 233, 0.12);
    --accent: #c8f04b;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { font-kerning: normal; text-rendering: optimizeLegibility; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .grain {
    position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .nav {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 70; display: flex; align-items: center; gap: 32px;
    padding: 14px 28px; border-radius: 999px;
    background: rgba(10,10,10,.5);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hairline);
  }
  .nav a {
    color: var(--muted); text-decoration: none; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
    transition: color .3s cubic-bezier(.32,.72,0,1);
  }
  .nav a:hover { color: var(--ink); }
  .nav .logo { color: var(--ink); font-weight: 700; letter-spacing: .14em; white-space: nowrap; display: inline-flex; align-items: center; }
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav .nav-cta { color: var(--accent); white-space: nowrap; }
  .nav .nav-cta:hover { color: var(--ink); }
  .nav .logo img { display: block; height: 32px; width: auto; }
  .site-footer .brand img { display: block; height: 28px; width: auto; }
  .menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
  .skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; background: var(--accent); color: #050505; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
  .skip-link:focus { top: 12px; }
  section[id] { scroll-margin-top: 110px; }

  #smooth-wrapper { position: relative; }
  html.motion-ready #smooth-content { will-change: transform; }
  section { position: relative; }

  /* ---------- HERO ---------- */
  .hero {
    min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 6vw 10vh;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4vh; margin-left: 6vw;
  }
  .hero-eyebrow::before {
    content: ''; width: 40px; height: 1px; background: var(--accent); display: inline-block;
  }
  .hero-title {
    font-size: clamp(52px, 10.5vw, 160px);
    line-height: .98; letter-spacing: -.03em; font-weight: 600;
    text-transform: uppercase;
  }
  .hero-title .line-mask { display: block; overflow: clip; }
  .hero-title em {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-weight: 400; text-transform: none; letter-spacing: -.01em;
    color: var(--accent);
  }
  .hero-sub {
    margin-top: 5vh; display: flex; justify-content: space-between;
    align-items: flex-end; gap: 24px; flex-wrap: wrap;
  }
  .hero-sub p {
    max-width: 380px; color: var(--muted);
    font-size: 15px; line-height: 1.7; font-weight: 300;
  }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
  .hero-link { display: inline-flex; align-items: center; gap: 16px; border: 1px solid var(--accent); border-radius: 999px; padding: 14px 20px; text-decoration: none; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; transition: background .25s, color .25s; }
  .hero-link:hover { background: var(--accent); color: var(--bg); }
  .scroll-cue {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  }
  .scroll-cue .wheel {
    width: 22px; height: 34px; border: 1px solid var(--hairline); border-radius: 12px;
    position: relative; overflow: hidden;
  }
  .scroll-cue .wheel::after {
    content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px;
    background: var(--accent); transform: translateX(-50%);
    animation: wheelDrop 1.8s cubic-bezier(.32,.72,0,1) infinite;
  }
  @keyframes wheelDrop {
    0% { transform: translate(-50%, -100%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, 24px); opacity: 0; }
  }
  .hero-glow {
    position: absolute; top: -20%; left: 50%;
    width: 70vw; height: 70vw; transform: translate(-50%, 0);
    background: radial-gradient(circle, rgba(200,240,75,.07) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-title, .hero-sub, .hero-eyebrow { position: relative; z-index: 2; }

  /* ---------- PINNED INTRO ---------- */
  .pinned-intro { padding: 10vh 6vw 0; }
  .intro-copy {
    min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 1100px;
  }
  .intro-copy h2 {
    font-size: clamp(34px, 5.4vw, 78px);
    line-height: 1.12; font-weight: 500; letter-spacing: -.02em;
  }
  .intro-copy h2 .word-fill {
    color: var(--muted);
    transition: color .4s cubic-bezier(.32,.72,0,1);
  }
  .intro-copy h2 .word-fill.lit { color: var(--ink); }
  .intro-copy h2 em {
    font-family: 'Playfair Display'; font-style: italic; font-weight: 400; color: var(--accent);
  }
  .intro-copy h2 em .word-fill { color: var(--accent); opacity: .45; transition: opacity .4s cubic-bezier(.32,.72,0,1); }
  .intro-copy h2 em .word-fill.lit { color: var(--accent); opacity: 1; }

  /* ---------- PINNED WORK (horizontal) ---------- */
  .work { overflow: hidden; }
  .work-head {
    padding: 8vh 6vw 4vh;
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .work-head h2 {
    font-size: clamp(34px, 5vw, 72px); letter-spacing: -.02em; font-weight: 600;
    text-transform: uppercase;
  }
  .work-head span { color: var(--muted); font-size: 13px; letter-spacing: .15em; }
  .work-track { display: flex; gap: 2.5vw; padding: 2vh 6vw 8vh; }
  .project-card {
    flex: 0 0 62vw; max-width: 780px;
    border-radius: 2rem;
    background: #0b0b0b;
    border: 1px solid var(--hairline);
    overflow: hidden;
    position: relative;
  }
  .project-card .thumb {
    height: 48vh; min-height: 300px;
    background: linear-gradient(160deg, #171717 0%, #0d0d0d 100%);
    display: grid; place-items: center;
    padding: 8%; grid-template-rows: minmax(0, 1fr);
    position: relative;
  }
  .project-card .thumb img {
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    max-width: 90%; max-height: 90%; object-fit: contain;
    border-radius: 1.4rem;
    transition: transform .7s cubic-bezier(.32,.72,0,1);
  }
  .project-card:hover .thumb img { transform: scale(1.04); }
  .project-card .thumb picture { display:block; width:100%; height:100%; }
  .project-card .thumb .cardshowcase { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; object-position: center top; border-radius: 1.2rem; }
  .project-card:nth-child(-n + 2) .thumb { padding: 0; overflow: hidden; background: #080808; }
  .project-card:nth-child(-n + 2) .thumb::after { content: ""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.08) 100%); pointer-events:none; }
  .project-card .thumb .brandmark {
    max-width: 88%; max-height: 88%;
    filter: drop-shadow(0 18px 50px rgba(0,0,0,.55));
    transition: transform .7s cubic-bezier(.32,.72,0,1);
  }
  .project-card:hover .thumb .brandmark { transform: scale(1.06); }
  .project-card .thumb::after {
    content: attr(data-index);
    position: absolute; bottom: 4%; right: 5%;
    font-size: clamp(60px, 8vw, 120px); font-weight: 700; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.18);
  }
  .project-card .meta {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 28px; border-top: 1px solid var(--hairline);
  }
  .project-caption { margin-top: 8px; max-width: 36ch; color: var(--muted); font-size: 13px; line-height: 1.6; }
  .project-card .meta { align-items: flex-start; gap: 20px; }
  .project-card .meta > span { flex: 0 0 auto; }
  .project-card .meta h3 { font-size: 20px; font-weight: 500; letter-spacing: .01em; }
  .project-card .meta span {
    font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  }

  /* Keep horizontal work usable if animations or remote libraries are unavailable. */
  html.no-motion .work-track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-color: var(--accent) #161616; }
  html.no-motion .project-card { scroll-snap-align: start; }
  /* ---------- ÜRÜN DETAYLARI ---------- */
  .products { padding: 14vh 6vw; }
  .products-head { margin-bottom: 7vh; max-width: 860px; }
  .products-head h2 { font-size: clamp(34px, 5vw, 72px); letter-spacing: -.02em; font-weight: 600; text-transform: uppercase; margin-bottom: 18px; }
  .products-head p { max-width: 650px; color: var(--muted); line-height: 1.8; font-size: 16px; }
  .prod-card {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: center;
    margin-bottom: 14vh;
  }
  .prod-card:last-child { margin-bottom: 0; }
  .prod-visual {
    border-radius: 2rem; overflow: hidden;
    background: linear-gradient(160deg, #141414, #0c0c0c);
    border: 1px solid var(--hairline);
    height: clamp(360px, 54vh, 660px); min-height: 52vh;
    display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: 7%;
  }
  .prod-visual img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 88%; max-height: 88%; object-fit: contain; border-radius: 1.2rem; }
  .prod-visual .brandmark { max-width: 74%; max-height: 70%; filter: drop-shadow(0 18px 50px rgba(0,0,0,.55)); }
  .prod-visual.prod-visual-fill { padding: 0; place-items: stretch; }
  .prod-visual.prod-visual-fill img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; border-radius: 0; }
  .prod-info .eyebrow-caps {
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 3vh; display: inline-flex; align-items: center; gap: 10px;
  }
  .prod-info .eyebrow-caps::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
  .prod-info h3 {
    font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -.02em; font-weight: 600;
    margin-bottom: 3vh;
  }
  .prod-info h3 em { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; color: var(--accent); }
  .prod-info p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 520px; }
  .prod-info ul { list-style: none; margin-top: 4vh; }
  .prod-info li {
    padding: 1.5vh 0; border-top: 1px solid var(--hairline);
    color: var(--ink); font-size: 15px; display: flex; gap: 14px; align-items: baseline;
  }
  .prod-info li::before { content: '→'; color: var(--accent); font-weight: 600; }

  /* ---------- BUYFRIEND SATIŞ AKIŞI ---------- */
  .salesflow { padding: 10vh 6vw 14vh; }
  .salesflow-head { margin-bottom: 8vh; max-width: 900px; }
  .salesflow-head h2 {
    font-size: clamp(34px, 5vw, 72px); letter-spacing: -.02em; font-weight: 600; text-transform: uppercase;
    margin-bottom: 2vh;
  }
  .salesflow-head p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 640px; }
  .flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5vw; }
  .flow-step {
    border: 1px solid var(--hairline); border-radius: 2rem;
    padding: 4vh 2vw; background: linear-gradient(160deg, #101010, #0c0c0c);
    position: relative; overflow: hidden; min-height: 300px;
    display: flex; flex-direction: column; gap: 2vh;
  }
  .flow-step::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(90% 55% at 85% 8%, rgba(200,240,75,.09), transparent 60%);
    pointer-events: none;
  }
  .flow-step .stepnum {
    font-size: clamp(38px, 4vw, 60px); font-weight: 700; letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.28);
  }
  .flow-step h3 { font-size: 20px; font-weight: 600; }
  .flow-step p { color: var(--muted); font-size: 14px; line-height: 1.75; }
  .flow-step .steptag {
    margin-top: auto; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent);
  }

  /* ---------- SERVICES ---------- */
  .services { padding: 12vh 6vw; }
  .services-head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8vh;
  }
  .services-head h2 { font-size: clamp(34px, 5vw, 72px); letter-spacing: -.02em; font-weight: 600; text-transform: uppercase; }
  .services-head span { color: var(--muted); font-size: 13px; letter-spacing: .15em; }
  .service-list { display: flex; flex-direction: column; }
  .service-item {
    display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 3vw;
    padding: 4.5vh 2vw 4.5vh 0; border-top: 1px solid var(--hairline);
    transition: padding-left .5s cubic-bezier(.32,.72,0,1);
  }
  .service-item:last-child { border-bottom: 1px solid var(--hairline); }
  .service-item:hover { padding-left: 2.5vw; }
  .service-item .num { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
  .service-item h3 {
    font-size: clamp(26px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.01em;
    transition: color .4s cubic-bezier(.32,.72,0,1);
  }
  .service-item:hover h3 { color: var(--accent); }
  .service-item .tags {
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    text-align: right; max-width: 260px; line-height: 1.8;
  }
  .service-item.reveal { opacity: 1; transform: none; }
  .project-card .card-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(200,240,75,.4); padding-bottom: 2px; }
  .project-card .card-link:hover { color: var(--ink); border-color: var(--ink); }
  a.service-item { color: inherit; text-decoration: none; }
  a.service-item:focus-visible { outline-offset: -2px; }
  .stat .value.word { font-size: clamp(38px, 4.4vw, 68px); letter-spacing: -.02em; }

  /* ---------- MARQUEE ---------- */
  .marquee { padding: 6vh 0 8vh; overflow: hidden; white-space: nowrap; }
  .marquee .row { display: inline-flex; will-change: transform; }
  .marquee .chunk {
    display: inline-flex; align-items: center; gap: 3vw; padding-right: 3vw;
    font-size: clamp(40px, 6vw, 96px); font-weight: 600; letter-spacing: -.02em;
    text-transform: uppercase; color: transparent;
    -webkit-text-stroke: 1px rgba(242,239,233,.25);
  }
  .marquee .chunk em {
    font-family: 'Playfair Display'; font-style: italic; font-weight: 400;
    -webkit-text-stroke: 0; color: var(--accent); text-transform: none;
    font-size: .85em;
  }
  .marquee .dot {
    width: 14px; height: 14px; border-radius: 999px; background: var(--accent);
    flex: 0 0 auto;
  }

  /* ---------- STATS ---------- */
  .stats {
    padding: 8vh 6vw 12vh;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw;
  }
  .stat {
    border-radius: 2rem; padding: 5vh 2.5vw;
    background: linear-gradient(160deg, #101010, #0c0c0c);
    border: 1px solid var(--hairline);
    position: relative; overflow: hidden;
  }
  .stat::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(80% 60% at 80% 10%, rgba(200,240,75,.08), transparent 60%);
    pointer-events: none;
  }
  .stat .value {
    font-size: clamp(48px, 6.5vw, 96px); font-weight: 600; letter-spacing: -.03em;
    display: block; margin-bottom: 1.5vh;
  }
  .stat-detail { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 34ch; }
  .stat .label {
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  }

  /* ---------- FOOTER CTA ---------- */
  .footer-cta {
    min-height: 90dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 10vh 6vw; gap: 4vh;
  }
  .footer-cta h2 {
    font-size: clamp(44px, 8vw, 128px); letter-spacing: -.03em; font-weight: 600;
    text-transform: uppercase;
  }
  .footer-cta h2 em {
    font-family: 'Playfair Display'; font-style: italic; font-weight: 400;
    text-transform: none; color: var(--accent);
  }
  .cta-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 18px 34px; border-radius: 999px;
    background: var(--ink); color: #050505;
    font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none;
    transition: transform .5s cubic-bezier(.32,.72,0,1), box-shadow .5s cubic-bezier(.32,.72,0,1);
  }
  .cta-btn:hover { transform: scale(.97); }
  .cta-btn .chip {
    width: 30px; height: 30px; border-radius: 999px; background: rgba(5,5,5,.08);
    display: grid; place-items: center; font-size: 15px;
  }

  .site-footer {
    padding: 6vh 6vw 5vh; border-top: 1px solid var(--hairline);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  }
  .site-footer .brand { font-weight: 700; letter-spacing: .14em; }
  .site-footer .links { display: flex; gap: 28px; flex-wrap: wrap; }
  .site-footer a {
    color: var(--muted); text-decoration: none; font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase;
    transition: color .3s cubic-bezier(.32,.72,0,1);
  }
  .site-footer a:hover { color: var(--ink); }

  /* ---------- KAFABOOM Motion Lab v2 ----------
     Existing palette, layout, typography and GSAP storytelling are unchanged.
     Ambient effects use CSS transforms/opacity; pointer events never block clicks. */
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%;
    z-index: 110; pointer-events: none; transform-origin: left center;
    transform: scaleX(0); background: var(--accent);
    box-shadow: 0 0 14px rgba(200,240,75,.48);
  }
  .hero { isolation: isolate; --spot-x: 50%; --spot-y: 38%; }
  .hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
    background: radial-gradient(closest-side at var(--spot-x) var(--spot-y), rgba(200,240,75,.055), transparent 75%);
  }
  .hero > :not(.hero-glow):not(.hero-orbit):not(.hero-media) { position: relative; z-index: 2; }
  .hero-glow { animation: kbGlowBreathe 10s ease-in-out infinite alternate; }
  @keyframes kbGlowBreathe { from { opacity: .56; } to { opacity: 1; } }
  .hero-orbit {
    position: absolute; z-index: 0; width: clamp(190px,29vw,420px);
    aspect-ratio: 1; top: 15%; right: 7%; opacity: .42;
    pointer-events: none; animation: kbOrbitFloat 10s ease-in-out infinite alternate;
  }
  .orbit-ring { position: absolute; inset: 7%; border: 1px solid rgba(200,240,75,.13); border-radius: 50%; }
  .orbit-ring-a { border-style: dashed; animation: kbOrbitSpin 44s linear infinite; }
  .orbit-ring-a::before, .orbit-ring-b::before {
    content:''; position: absolute; top: 1%; left: 48%; width: 7px; height: 7px;
    background: var(--accent); border-radius: 50%; box-shadow: 0 0 22px rgba(200,240,75,.85);
  }
  .orbit-ring-b { inset: 27%; border-color: rgba(242,239,233,.16); animation: kbOrbitSpin 30s linear infinite reverse; }
  .orbit-ring-b::before { width: 5px; height: 5px; opacity: .6; }
  .orbit-core {
    position: absolute; inset: 44%; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,75,.22), transparent 68%);
    filter: blur(2px); animation: kbCorePulse 4s ease-in-out infinite alternate;
  }
  @keyframes kbOrbitSpin { to { transform: rotate(360deg); } }
  @keyframes kbOrbitFloat { from { transform: translateY(-10px); } to { transform: translateY(16px); } }
  @keyframes kbCorePulse { to { opacity: .38; transform: scale(1.45); } }
  .hero-title em { animation: kbTypeGlow 8s ease-in-out infinite alternate; }
  @keyframes kbTypeGlow { from { text-shadow: 0 0 0 rgba(200,240,75,0); } to { text-shadow: 0 0 24px rgba(200,240,75,.14); } }

  /* Section entrances are enabled only after IntersectionObserver is available. */
  html.kb-enhanced .kb-reveal:not(.kb-visible) {
    opacity: 0; transform: translate3d(0, 28px, 0);
  }
  html.kb-enhanced .kb-reveal {
    transition: opacity .85s cubic-bezier(.2,.75,.25,1), transform .85s cubic-bezier(.2,.75,.25,1);
    transition-delay: var(--kb-delay, 0ms);
  }
  html.kb-enhanced .kb-reveal.kb-visible { opacity: 1; transform: translate3d(0,0,0); }

  /* Fine-grained hover polish, no replacement of existing card design. */
  .project-card .thumb { isolation: isolate; }
  .project-card .thumb::before {
    content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none;
    background: linear-gradient(112deg, transparent 24%, rgba(242,239,233,.07) 44%, transparent 63%);
    transform: translate3d(-110%,0,0); transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
  }
  .project-card:hover .thumb::before { transform: translate3d(110%,0,0); }
  .flow-step, .stat, .prod-visual { transition: border-color .5s, box-shadow .5s; }
  @media (hover: hover) and (pointer: fine) {
    .flow-step:hover, .stat:hover, .prod-visual:hover {
      border-color: rgba(200,240,75,.28);
      box-shadow: inset 0 0 0 1px rgba(200,240,75,.02), 0 18px 50px rgba(0,0,0,.2);
    }
  }
  .hero-link, .cta-btn { --mag-x: 0px; --mag-y: 0px; }
  @media (hover: hover) and (pointer: fine) {
    .hero-link { transform: translate3d(var(--mag-x),var(--mag-y),0); transition: transform .2s ease-out, background .25s, color .25s; }
    .cta-btn { transform: translate3d(var(--mag-x),var(--mag-y),0); transition: transform .2s ease-out, box-shadow .5s; }
    .cta-btn:hover { transform: translate3d(var(--mag-x),var(--mag-y),0) scale(.97); }
  }
  .cta-btn .chip { transition: transform .4s ease; }
  .cta-btn:hover .chip { transform: rotate(-35deg); }
  /* Offline fallback maintains the existing continuous marquee. */
  @media (prefers-reduced-motion: no-preference) {
    html.kb-fallback .marquee .row { animation: kbMarqueeFallback 28s linear infinite; }
    @keyframes kbMarqueeFallback { to { transform: translate3d(-50%,0,0); } }
  }
  @media (max-width: 768px) {
    .hero-orbit { width: min(49vw,230px); right: 2%; top: 14%; opacity: .23; }
    .hero::before { opacity: .35; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-glow, .hero-orbit, .orbit-ring, .orbit-core, .hero-title em, .marquee .row { animation: none !important; }
    html.kb-enhanced .kb-reveal:not(.kb-visible) { opacity: 1; transform: none; }
    .project-card .thumb::before { display: none; }
    .hero-link, .cta-btn { --mag-x: 0px !important; --mag-y: 0px !important; }
  }

  @media (max-width: 768px) {
    .nav { top: 14px; width: min(calc(100vw - 30px), 440px); justify-content: space-between; gap: 18px; padding: 12px 18px; }
    .menu-toggle { display: inline-flex; align-items: center; gap: 10px; font: 600 12px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0 8px 10px; }
    .menu-bars { display: inline-flex; flex-direction: column; gap: 5px; }
    .menu-bars i { display: block; background: var(--accent); width: 19px; height: 2px; transition: transform .2s; }
    .nav.is-open .menu-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
    .nav.is-open .menu-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; border: 1px solid var(--hairline); border-radius: 22px; background: #101010; padding: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
    .nav.is-open .nav-links { display: flex; }
    .nav-links a { padding: 14px; display: block; }
    .nav-links a + a { border-top: 1px solid var(--hairline); }
    .hero { padding-top: 125px; min-height: 100svh; padding-bottom: 9vh; }
    .nav .logo img { height: 26px; }
    .hero-title { font-size: clamp(48px, 11vw, 83px); overflow-wrap: normal; max-width: none; }
    .hero-sub { max-width: none; }
    .hero-eyebrow { margin-left: 0; }
    .hero-sub { flex-direction: column; align-items: flex-start; }
    .hero-sub p { font-size: 14px; }
    .hero-actions { gap: 18px; }
    .scroll-cue { display: none; }
    .work-head, .services-head { gap: 16px; align-items: start; flex-direction: column; }
    .work-track { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--accent) #161616; gap: 14px; padding-bottom: 24px; }
    .project-card { flex: 0 0 86vw; scroll-snap-align: center; border-radius: 1.4rem; }
    .project-card .thumb { height: 40vh; min-height: 240px; }
    .project-card .meta { flex-direction: column; padding: 20px; gap: 8px; }
    .project-card .meta > span { white-space: normal; }
    .stats { grid-template-columns: 1fr; gap: 16px; }
    .stat { padding: 28px; }
    .service-item { grid-template-columns: 1fr; gap: 8px; }
    .service-item .tags { text-align: left; }
    .prod-card { grid-template-columns: 1fr; gap: 4vh; margin-bottom: 10vh; }
    .prod-visual { height: clamp(270px, 37vh, 460px); min-height: 32vh; padding: 8%; border-radius: 1.5rem; }
    .prod-visual.prod-visual-fill { padding: 0; }
    .flow-steps { grid-template-columns: 1fr; gap: 14px; }
    .flow-step { min-height: auto; padding: 26px; border-radius: 1.5rem; }
    .footer-cta { min-height: 65dvh; }
    .site-footer { flex-direction: column; align-items: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .scroll-cue .wheel::after { animation: none; }
  }

  /* ---------- Motion Lab v3 / portfolio legibility + portfolio artwork ----------
     Preserves original color system, typography, horizontal-scroll storytelling and GSAP. */
  .project-card .meta {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 15px; padding: 25px 32px 30px;
  }
  .project-card .meta > div { width: 100%; }
  .project-card .meta h3 {
    font-size: clamp(31px, 3.05vw, 42px); line-height: 1.05;
    letter-spacing: -.035em; font-weight: 600; overflow-wrap: break-word;
  }
  .project-card:nth-child(-n + 2) .meta h3 {
    font-size: clamp(38px, 3.65vw, 52px); font-weight: 700;
  }
  .project-card .project-caption {
    max-width: 62ch; margin-top: 10px; line-height: 1.55;
    font-size: clamp(14px, 1vw, 15px);
  }
  .project-card .meta > span {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; line-height: 1.5; letter-spacing: .14em;
    color: rgba(242,239,233,.52); white-space: normal;
  }
  .project-card .meta > span::before {
    content: ''; display: inline-block; width: 24px; flex: 0 0 24px;
    height: 1px; background: var(--accent);
  }
  .project-card .visual-thumb {
    padding: 0; background: #0b100c; overflow: hidden;
  }
  .project-card .visual-thumb picture { display: block; width: 100%; height: 100%; }
  .project-card .visual-thumb img {
    width: 100%; height: 100%; max-width: none; max-height: none;
    object-fit: cover; border-radius: 0;
    transform: scale(1.005); transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .6s;
  }
  .project-card:hover .visual-thumb img { transform: scale(1.055); }
  .project-card .visual-thumb::after { color: transparent; -webkit-text-stroke-color: rgba(242,239,233,.11); z-index: 1; }
  .concept-badge {
    position: absolute; top: 22px; right: 24px; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(9,15,9,.83); border: 1px solid rgba(200,240,75,.45);
    color: var(--accent); border-radius: 99px; padding: 9px 13px;
    font-size: 11px; letter-spacing: .1em; font-weight: 700;
    backdrop-filter: blur(8px); white-space: nowrap; pointer-events: none;
  }
  .concept-badge i { width: 7px; height: 7px; border-radius: 100%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,240,75,.32); animation: kbStatus 2.5s infinite; }
  @keyframes kbStatus { 55% { box-shadow: 0 0 0 8px rgba(200,240,75,0); } 100% { box-shadow: 0 0 0 0 rgba(200,240,75,0); } }
  /* Existing service list layout intact; subtle hover line makes the expertise section feel finished. */
  .service-item { position: relative; }
  .service-item::before { content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--accent); transition: width .65s cubic-bezier(.2,.7,.3,1); }
  .service-item:hover::before, .service-item:focus-within::before { width: 100%; }
  @media (max-width: 768px) {
    .project-card .meta { padding: 23px 22px 25px; gap: 12px; }
    .project-card .meta h3 { font-size: clamp(29px, 7.9vw, 35px); }
    .project-card:nth-child(-n + 2) .meta h3 { font-size: clamp(36px, 10vw, 44px); }
    .project-card .project-caption { font-size: 14px; max-width: 38ch; }
    .project-card .visual-thumb img { object-position: center; }
    .project-card .thumb .cardshowcase { object-position: center top; }
    .concept-badge { display: none; } /* Mobile artwork already carries the concept label. */
  }
  @media (prefers-reduced-motion: reduce) {
    .concept-badge i { animation: none; }
    .project-card .visual-thumb img { transition: none; }
    .service-item::before { transition: none; }
  }

  /* KAFABOOM v9: layout repair scoped to hero and portfolio; no redesign. */
  .hero {
    min-height: 100svh;
    padding: clamp(130px, 15vh, 172px) 6vw 9vh;
    justify-content: flex-start;
    overflow: hidden;
    background-color: #050505;
    background-image:
      linear-gradient(90deg, #050505 0%, #050505 29%, rgba(5,5,5,.94) 43%, rgba(5,5,5,.50) 55%, rgba(5,5,5,.02) 74%),
      url("img/kafaboom-hero-bg-v9.webp");
    background-position: center, right 0 top clamp(134px, 15vh, 174px);
    background-repeat: no-repeat;
    background-size: cover, min(56vw, 820px) auto;
  }
  .hero > .hero-eyebrow { margin: 0 0 24px 0; }
  .hero .hero-title {
    width: max-content;
    max-width: min(58vw, 840px);
    font-size: clamp(54px, 7.4vw, 112px);
    line-height: 1.02;
    letter-spacing: -.034em;
    overflow: visible;
  }
  .hero .hero-title .line-mask {
    display: block;
    white-space: nowrap;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero > .hero-sub { max-width: 44vw; margin-top: 3.4vh; }
  .hero > .hero-sub p { color: rgba(242,239,233,.78); }
  /* First two project images are intentionally large and use high-quality, separately named assets. */
  .project-card:nth-child(-n+2) .thumb { padding: 0; }
  .project-card:nth-child(-n+2) .thumb picture { display:block; width:100%; height:100%; }
  .project-card:nth-child(-n+2) .thumb img.cardshowcase { width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; object-position:center; border-radius:0; }
  /* Restore original service rows even if remote animation libraries fail to load. */
  .services .service-list { display:flex; flex-direction:column; }
  .services .service-item { display:grid; grid-template-columns:80px minmax(0,1fr) auto; align-items:baseline; gap:3vw; opacity:1; transform:none; }
  .services .service-item .tags { max-width:260px; }
  @media (max-width: 1024px) and (min-width:769px) {
    .hero .hero-title { font-size:clamp(50px, 7vw, 78px); }
    .hero { background-size:cover, 58vw auto; }
  }
  @media (max-width: 768px) {
    .hero {
      min-height:100svh;
      padding: 120px 6vw 8vh;
      background-image:
        linear-gradient(180deg, #050505 0%,rgba(5,5,5,.96) 18%,rgba(5,5,5,.26) 44%,rgba(5,5,5,.08) 74%,rgba(5,5,5,.42) 94%,#050505 100%),
        linear-gradient(90deg,rgba(5,5,5,.91),rgba(5,5,5,.04)),
        url("img/kafaboom-hero-bg-v9.webp");
      background-size: cover, cover, min(98vw, 520px) auto;
      background-position:center, center, right -10vw top clamp(365px, 51vh, 475px);
      background-repeat:no-repeat;
    }
    .hero > .hero-eyebrow { font-size:10px; letter-spacing:.11em; margin-bottom:24px; }
    .hero .hero-title { width:100%; max-width:100%; font-size:clamp(39px, 10.5vw, 76px); line-height:1.06; letter-spacing:-.05em; }
    .hero .hero-title .line-mask { white-space:nowrap; overflow:visible; }
    .hero > .hero-sub { max-width:100%; margin-top:clamp(24px,4vh,40px); }
    .hero > .hero-sub p { max-width:32ch; }
    .project-card:nth-child(-n+2) .thumb img.cardshowcase { object-fit:cover; object-position:center 23%; }
    .services .service-item { grid-template-columns:1fr; gap:8px; }
    .services .service-item .tags { text-align:left; }
  }
  @media (max-width: 360px) { .hero .hero-title { font-size:clamp(36px,10.1vw,39px); } }

  /* KB_STUDIO_V3_CSS_START */
  .kb-studio-about { padding: 12vh 6vw 16vh; border-top: 1px solid var(--hairline); scroll-margin-top: 110px; }
  .kb-studio-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(32px,8vw,130px); align-items:start; }
  .kb-studio-intro h2 { font-size:clamp(34px,4.6vw,70px); line-height:1.09; letter-spacing:-.03em; margin:24px 0 30px; font-weight:600; }
  .kb-studio-intro h2 em { font-family:Playfair Display,serif; font-weight:400; color:var(--accent); }
  .kb-studio-intro p,.kb-studio-side p { color:var(--muted); line-height:1.8; font-size:15px; max-width:56ch; }
  .kb-eyebrow,.kb-side-num { font-size:11px; letter-spacing:.2em; color:var(--accent); font-weight:700; }
  .kb-studio-side {border-left:1px solid var(--hairline); padding-left:clamp(24px,3vw,52px); }
  .kb-studio-side h3 { font-size:clamp(20px,2vw,29px);font-weight:600;letter-spacing:-.02em;margin:9px 0 10px; }
  .kb-studio-side p { margin-bottom:32px; }
  .kb-site-legal-links{display:flex;gap:20px;flex-wrap:wrap;align-items:center} .kb-site-legal-links a{color:var(--muted);font-size:12px;text-decoration:none} .kb-site-legal-links a:hover{color:var(--accent)}
  @media(max-width:768px){.kb-studio-grid{grid-template-columns:1fr;gap:28px}.kb-studio-side{border-left:0;border-top:1px solid var(--hairline);padding:28px 0 0}}
  /* KB_STUDIO_V3_CSS_END */
