/* =========================================================================
   KGN Studio — main.css
   Theme stylesheet: variables, typography, layout, components, animations.
   ========================================================================= */

/* ----- Fonts -------------------------------------------------------------- */
/* Bebas Neue from Google Fonts — full Latin Extended (Slovak diacritics: á č š ž ť ď ľ ŕ ĺ ô ä). */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@font-face {
    font-family: 'Julietta Messie';
    src: url('../fonts/Julietta-Messie.woff2') format('woff2'),
         url('../fonts/Julietta-Messie.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations'),
         url('../fonts/Montserrat-VariableFont_wght.ttf')   format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ----- Variables ---------------------------------------------------------- */
:root {
    --c-ink:       #2b2b2b;
    --c-ink-90:    rgba(43,43,43,0.9);
    --c-ink-60:    rgba(43,43,43,0.6);
    --c-ink-30:    rgba(43,43,43,0.3);
    --c-paper:     #fffdf6;
    --c-paper-60:  rgba(255,253,246,0.6);
    --c-paper-30:  rgba(255,253,246,0.3);
    --c-tint-1:    #f6f4ed;
    --c-tint-2:    #d4d3cc;
    --c-tint-3:    #b3b1ab;
    --c-tint-4:    #918f8b;
    --c-gray-1:    #efefef;
    --c-gray-2:    #cdcdcd;
    --c-gray-3:    #ababab;
    --c-gray-4:    #898989;

    --f-primary:   'Bebas Neue', 'Impact', sans-serif;
    --f-script:    'Julietta Messie', 'Brush Script MT', cursive;
    --f-body:      'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --container:   min(1480px, calc(100vw - 48px));
    --gutter:      24px;
    --gutter-lg:   80px;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-h:       80px;
}

/* ----- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ----- Base typography ---------------------------------------------------- */
body {
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-paper);
    overflow-x: hidden;
    cursor: none;
}
@media (hover: none), (max-width: 768px) {
    body { cursor: auto; }
}

::selection { background: var(--c-ink); color: var(--c-paper); }

/* ----- Container helpers -------------------------------------------------- */
.kgn-container { width: var(--container); margin-inline: auto; }

.kgn-eyebrow {
    font-family: var(--f-primary);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-tint-4);
    display: inline-block;
    margin-bottom: 32px;
}
.kgn-eyebrow--light { color: var(--c-paper-60); }
.kgn-eyebrow::before {
    content: '';
    display: inline-block;
    width: 36px; height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 14px;
    transform: translateY(-2px);
}

/* ----- Buttons ------------------------------------------------------------ */
.kgn-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-family: var(--f-primary);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 400ms var(--ease-out), color 400ms var(--ease-out);
}
.kgn-btn:hover { background: var(--c-ink); color: var(--c-paper); }
.kgn-btn--submit {
    background: var(--c-ink);
    color: var(--c-paper);
    border-color: var(--c-ink);
}
.kgn-btn--submit:hover { background: var(--c-paper); color: var(--c-ink); }
.kgn-btn__arrow { display: inline-flex; transition: transform 350ms var(--ease-out); }
.kgn-btn:hover .kgn-btn__arrow { transform: translateX(6px); }

/* =========================================================================
   PRELOADER
   ========================================================================= */
.kgn-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--c-paper);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: opacity 600ms var(--ease-out);
}
.kgn-preloader__mark { width: 110px; color: var(--c-ink); animation: kgnPulse 1.4s ease-in-out infinite; display: flex; }
.kgn-preloader__mark svg { width: 100%; height: auto; display: block; }
.is-loaded .kgn-preloader { opacity: 0; pointer-events: none; }
@keyframes kgnPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.92); }
    50%      { opacity: 1;   transform: scale(1); }
}

/* =========================================================================
   CURSOR
   ========================================================================= */
.kgn-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; mix-blend-mode: difference; }
.kgn-cursor__dot {
    position: absolute; top: -3px; left: -3px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-paper);
}
.kgn-cursor__ring {
    position: absolute; top: -18px; left: -18px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--c-paper);
    transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
}
.kgn-cursor.is-hover .kgn-cursor__ring { transform: scale(1.6); opacity: 0.6; }
@media (hover: none), (max-width: 768px) { .kgn-cursor { display: none; } }

/* =========================================================================
   NAV
   ========================================================================= */
.kgn-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px 32px;
    transition: padding 350ms var(--ease-out), background 350ms var(--ease-out), color 350ms var(--ease-out);
    color: var(--c-paper);
    mix-blend-mode: difference;
}
.kgn-nav.is-scrolled {
    padding: 14px 32px;
    background: rgba(43,43,43,0.85);
    mix-blend-mode: normal;
    backdrop-filter: blur(12px);
    color: var(--c-paper);
}
.kgn-nav__inner {
    width: 100%; max-width: 1680px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px;
}
.kgn-nav__logo {
    display: inline-flex; align-items: center;
    color: var(--c-paper);
}
.kgn-nav__logo .kgn-wordmark { width: auto; height: 48px; display: block; }
.kgn-nav.is-scrolled .kgn-nav__logo .kgn-wordmark { height: 40px; transition: height 350ms var(--ease-out); }

.kgn-nav__menu { display: flex; align-items: center; gap: 32px; }
.kgn-nav__menu a {
    font-family: var(--f-primary); letter-spacing: 0.22em;
    text-transform: uppercase; font-size: 13px;
    position: relative; padding: 6px 2px;
}
.kgn-nav__menu a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 380ms var(--ease-out);
}
.kgn-nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Liquid-glass lang switcher */
.kgn-nav__lang {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 253, 246, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 246, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 8px 24px -8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    isolation: isolate;
}
.kgn-nav__lang::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(255, 253, 246, 0.18), transparent 60%),
        radial-gradient(120% 80% at 70% 100%, rgba(255, 253, 246, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.kgn-nav__lang-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--c-ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 246, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 4px 12px -2px rgba(0, 0, 0, 0.35);
    transition: transform 600ms cubic-bezier(0.32, 0.72, 0.18, 1.05);
    z-index: 1;
}
.kgn-nav__lang[data-lang="sk"] .kgn-nav__lang-pill {
    transform: translateX(calc(100% + 0px));
}
.kgn-nav__lang-link {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    min-width: 42px;
    padding: 7px 14px;
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: rgba(255, 253, 246, 0.65);
    transition: color 360ms var(--ease-out);
    border-radius: 999px;
}
.kgn-nav__lang-link.is-current { color: var(--c-paper); }
.kgn-nav__lang-link:hover { color: var(--c-paper); }
.kgn-nav__lang-link.is-current:hover { color: var(--c-paper); }
.kgn-nav.is-scrolled .kgn-nav__lang { background: rgba(255, 253, 246, 0.04); }

.kgn-nav__toggle { display: none; flex-direction: column; gap: 5px; }
.kgn-nav__toggle span { width: 26px; height: 1.5px; background: currentColor; transition: transform 320ms var(--ease-out), opacity 320ms; }
.kgn-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kgn-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kgn-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .kgn-nav__menu {
        position: fixed; inset: 0; padding: 120px 32px 48px;
        background: var(--c-ink); color: var(--c-paper);
        flex-direction: column; align-items: flex-start; gap: 24px;
        font-size: 32px;
        transform: translateY(-100%); transition: transform 450ms var(--ease-in-out);
    }
    .kgn-nav__menu a { font-size: 28px; letter-spacing: 0.16em; }
    .is-menu-open .kgn-nav__menu { transform: translateY(0); }
    .kgn-nav__toggle { display: inline-flex; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.kgn-hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    overflow: hidden;
    color: var(--c-paper);
    background: var(--c-ink);
}
.kgn-hero__media { position: absolute; inset: 0; }
.kgn-hero__video {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.kgn-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(43,43,43,0.55) 0%, rgba(43,43,43,0.3) 35%, rgba(43,43,43,0.75) 100%);
}

.kgn-hero__content {
    position: relative; z-index: 2;
    width: var(--container); margin-inline: auto;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    min-height: 100vh; min-height: 100dvh;
    padding-bottom: clamp(56px, 10vh, 110px);
    padding-top: var(--nav-h);
    text-align: center;
}
.kgn-hero__claim {
    color: var(--c-paper);
    width: clamp(280px, 36vw, 540px);
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.35));
}
.kgn-hero__claim .kgn-claim-svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .kgn-hero__claim { width: 72vw; }
    .kgn-hero__content { padding-bottom: 80px; }
}

.kgn-hero__scroll {
    position: absolute; bottom: 32px; right: 32px; z-index: 3;
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--c-paper-60);
    font-family: var(--f-primary); font-size: 12px;
    letter-spacing: 0.32em; text-transform: uppercase;
}
.kgn-hero__scroll-line {
    width: 60px; height: 1px; background: currentColor;
    transform-origin: right; animation: kgnLineSlide 2.4s var(--ease-in-out) infinite;
}
@keyframes kgnLineSlide {
    0% { transform: scaleX(0); transform-origin: right; }
    50% { transform: scaleX(1); transform-origin: right; }
    51% { transform: scaleX(1); transform-origin: left; }
    100% { transform: scaleX(0); transform-origin: left; }
}

@media (max-width: 768px) {
    .kgn-hero__scroll { right: 24px; bottom: 24px; }
    .kgn-hero__scroll-line { width: 32px; }
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.kgn-about { padding: clamp(140px, 22vh, 260px) 0 clamp(140px, 20vh, 240px); background: var(--c-paper); }
.kgn-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
    margin-top: 56px;
}
.kgn-about__body p {
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.6;
    color: var(--c-ink-90);
    max-width: 52ch;
    font-weight: 300;
}
.kgn-about__crt-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 36px;
    perspective: 1400px;
}

/* ========== CRT television ========== */
.kgn-crt {
    --rot: -6deg;
    --tube-w: clamp(280px, 32vw, 520px);
    --bezel: 28px;
    position: relative;
    width: var(--tube-w);
    transform-style: preserve-3d;
    transform: rotateY(var(--rot)) rotateX(4deg);
    transition: transform 1200ms var(--ease-out);
    filter: drop-shadow(0 28px 50px rgba(43,43,43,0.35)) drop-shadow(0 6px 12px rgba(43,43,43,0.25));
}
.kgn-crt:hover { --rot: -3deg; }

.kgn-crt__case {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.45;
    padding: var(--bezel);
    background:
        radial-gradient(120% 80% at 30% 0%, #c0bdb0 0%, #a59f8e 30%, #8d8674 55%, #6f6a5a 100%);
    border-radius: 22px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(0,0,0,0.35),
        inset 8px 8px 24px rgba(255,255,255,0.18),
        inset -8px -8px 24px rgba(0,0,0,0.35);
}
.kgn-crt__bezel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    padding: 12px;
    background: linear-gradient(160deg, #2a2925 0%, #15140f 60%, #1c1b16 100%);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.07),
        inset 0 -2px 0 rgba(0,0,0,0.7),
        inset 0 0 0 1px rgba(0,0,0,0.6);
}
.kgn-crt__tube {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 36px / 22px;   /* CRT bulge feel */
    background: #050505;
    box-shadow:
        inset 0 0 24px rgba(0,0,0,0.95),
        inset 0 0 80px rgba(0,0,0,0.6);
}
.kgn-crt__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05) brightness(0.95);
    transition: opacity 320ms ease-out;
    opacity: 0;
}
.kgn-crt[data-current="25"] .kgn-crt__video[data-showreel="25"] { opacity: 1; }
.kgn-crt[data-current="23"] .kgn-crt__video[data-showreel="23"] { opacity: 1; }

/* Snow / static — shown during channel switch */
.kgn-crt__noise {
    position: absolute; inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 220ms ease-out;
    pointer-events: none;
    z-index: 4;
}
.kgn-crt__noise svg { display: block; width: 100%; height: 100%; }
.kgn-crt.is-switching .kgn-crt__noise { opacity: 0.85; animation: kgnNoiseShift 0.16s steps(2) infinite; }
@keyframes kgnNoiseShift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 1%); }
    100% { transform: translate(2%, -1%); }
}

/* Horizontal scanlines */
.kgn-crt__scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0px,
        rgba(0,0,0,0.18) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0.9;
    z-index: 5;
}
/* Subtle moving scanline + RGB shift */
.kgn-crt__scanlines::after {
    content: '';
    position: absolute; left: 0; right: 0;
    top: -10%;
    height: 24%;
    background: linear-gradient(to bottom,
        transparent,
        rgba(255,255,255,0.04) 30%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.04) 70%,
        transparent);
    animation: kgnScanRoll 7s linear infinite;
}
@keyframes kgnScanRoll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(500%); }
}

.kgn-crt__vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 110% at 50% 50%,
            transparent 55%,
            rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 6;
}
.kgn-crt__glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(80% 60% at 50% 30%,
            rgba(255,255,255,0.10) 0%,
            transparent 50%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 7;
}

.kgn-crt__channel {
    position: absolute; top: 14px; right: 18px;
    color: #f0e9c8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-shadow: 0 0 6px rgba(255,255,200,0.6);
    opacity: 0;
    z-index: 8;
    transition: opacity 240ms ease-out;
}
.kgn-crt.is-switching .kgn-crt__channel { opacity: 1; }

/* TV chrome */
.kgn-crt__brand {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: rgba(0,0,0,0.55);
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.kgn-crt__brand span { font-weight: 400; opacity: 0.7; margin-left: 4px; }

.kgn-crt__dials {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 12px;
    opacity: 0;       /* hide for cleanliness — TV brand label is enough */
    pointer-events: none;
}

.kgn-crt__speaker {
    position: absolute;
    bottom: 6px; right: 16px;
    width: 36px; height: 10px;
    background: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.5) 0px,
        rgba(0,0,0,0.5) 1px,
        transparent 1px,
        transparent 3px);
    border-radius: 2px;
    opacity: 0;
}

/* Stand */
.kgn-crt__stand {
    width: 60%;
    height: 14px;
    margin: -10px auto 0;
    background: linear-gradient(180deg, #8b8470, #5a5345);
    border-radius: 0 0 8px 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 12px 18px -8px rgba(0,0,0,0.4);
    transform: rotateY(calc(var(--rot) * 0.6));
}

/* Liquid-glass channel switcher (Showreel 23' / 25') */
.kgn-about__switch {
    position: relative;
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(43,43,43,0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(43,43,43,0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,253,246,0.55),
        inset 0 -1px 0 rgba(0,0,0,0.06),
        0 12px 30px -10px rgba(0,0,0,0.18);
    isolation: isolate;
    overflow: hidden;
}
.kgn-about__switch::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(255,253,246,0.55), transparent 60%),
        radial-gradient(120% 80% at 70% 100%, rgba(43,43,43,0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.kgn-about__switch-pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    border-radius: 999px;
    background: var(--c-ink);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 6px 14px -2px rgba(0,0,0,0.35);
    transition: transform 600ms cubic-bezier(0.32, 0.72, 0.18, 1.05);
    z-index: 1;
}
.kgn-about__switch[data-switch="25"] .kgn-about__switch-pill {
    transform: translateX(calc(100% + 0px));
}
.kgn-about__switch-link {
    position: relative;
    z-index: 2;
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 12px 26px;
    color: var(--c-ink);
    transition: color 360ms var(--ease-out);
    cursor: pointer;
    border-radius: 999px;
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
}
.kgn-about__switch-link em {
    font-style: normal;
    font-family: var(--f-script);
    font-weight: 400;
    font-size: 22px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}
.kgn-about__switch-link span {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.28em;
    opacity: 0.75;
}
.kgn-about__switch-link.is-current { color: var(--c-paper); }
.kgn-about__switch-link:not(.is-current):hover { color: var(--c-ink); }

@media (max-width: 768px) {
    .kgn-about__grid { grid-template-columns: 1fr; gap: 56px; }
    .kgn-crt { --rot: 0deg; }
    .kgn-crt:hover { --rot: 0deg; }
}

/* =========================================================================
   PORTFOLIO TIMELINE
   ========================================================================= */
/* =========================================================================
   TIMELINE — minimal, scroll-drawn
   ========================================================================= */
.kgn-timeline-sec {
    position: relative;
    background: var(--c-paper);
    color: var(--c-ink);
    padding: clamp(120px, 16vh, 200px) 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
}
.kgn-timeline-sec__header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: clamp(80px, 12vh, 140px); }
.kgn-timeline-sec__headline {
    font-family: var(--f-primary);
    text-transform: uppercase;
    font-size: clamp(64px, 10vw, 160px);
    line-height: 0.9;
    margin-top: 4px;
    display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap;
}
.kgn-timeline-sec__headline em {
    font-family: var(--f-script);
    font-style: normal;
    font-size: clamp(32px, 4vw, 64px);
    color: var(--c-tint-4);
    letter-spacing: 0;
    transform: translateY(-0.05em);
}
.kgn-tline {
    position: relative;
    width: 100%;
    height: 240px;
    color: var(--c-ink);
}
.kgn-tline__rail {
    position: absolute;
    left: 4%; right: 4%;
    top: 50%;
    height: 4px;
    width: 92%;
    transform: translateY(-50%);
    color: var(--c-ink);
    overflow: visible;
}
.kgn-tline__rail [data-tline-rail-path] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease-out);
}
.kgn-tline.is-drawn .kgn-tline__rail [data-tline-rail-path] {
    stroke-dashoffset: 0;
}
.kgn-tline__list {
    position: relative;
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 4%;
}
.kgn-tline__year {
    position: relative;
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}
.kgn-tline__tick {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 24px;
    background: var(--c-ink);
    transform: translateX(-0.5px) translateY(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
}
.kgn-tline.is-drawn .kgn-tline__year .kgn-tline__tick { transform: translateX(-0.5px) translateY(-50%) scaleY(1); }
.kgn-tline__year.is-milestone .kgn-tline__tick { height: 40px; width: 1.5px; }

.kgn-tline__logo {
    position: absolute;
    top: calc(50% - 80px);
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    color: var(--c-ink);
    opacity: 0;
    transition: opacity 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms + 600ms);
}
.kgn-tline__logo img { width: 100%; height: auto; display: block; }
.kgn-tline.is-drawn .kgn-tline__year .kgn-tline__logo { opacity: 0.8; }

.kgn-tline__year-label {
    position: absolute;
    top: calc(50% + 28px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-script);
    font-weight: 400;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1;
    color: var(--c-ink);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}
.kgn-tline__year-label .kgn-tline__year-clip {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms + 200ms);
}
.kgn-tline.is-drawn .kgn-tline__year .kgn-tline__year-clip {
    clip-path: inset(0 0% 0 0);
}
.kgn-tline__year.is-milestone .kgn-tline__year-label {
    top: calc(50% + 56px);
}

.kgn-tline__milestone {
    position: absolute;
    top: calc(50% + 110px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-primary);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-tint-4);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms + 900ms);
}
.kgn-tline.is-drawn .kgn-tline__year.is-milestone .kgn-tline__milestone { opacity: 1; }

@media (max-width: 900px) {
    .kgn-tline { height: auto; padding: 80px 0; overflow-x: auto; }
    .kgn-tline__list { min-width: 1200px; }
    .kgn-tline__year-label { font-size: 26px; top: calc(50% + 24px); }
    .kgn-tline__year.is-milestone .kgn-tline__year-label { top: calc(50% + 50px); }
    .kgn-tline__logo { top: calc(50% - 60px); width: 18px; }
}

/* =========================================================================
   PORTFOLIO GRID — editorial mosaic
   ========================================================================= */
.kgn-portfolio-grid {
    position: relative;
    background: var(--c-tint-1);
    padding: clamp(140px, 18vh, 220px) 0;
}
.kgn-portfolio-grid__header { display: flex; flex-direction: column; align-items: flex-start; }
.kgn-portfolio-grid__headline {
    font-family: var(--f-primary);
    text-transform: uppercase;
    font-size: clamp(64px, 10vw, 160px);
    line-height: 0.9;
    margin-top: 4px;
}
.kgn-portfolio-grid__list {
    margin-top: clamp(60px, 8vh, 100px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(40px, 4vw, 80px) clamp(24px, 2.5vw, 48px);
}
.kgn-pg-item {
    grid-column: span 6;
    display: flex; flex-direction: column;
    gap: 20px;
}
/* Magazine-like staggered columns */
.kgn-pg-item--2 { grid-column: span 6; margin-top: clamp(30px, 5vh, 80px); }
.kgn-pg-item--3 { grid-column: span 8; }
.kgn-pg-item--4 { grid-column: span 4; margin-top: clamp(40px, 6vh, 100px); }
.kgn-pg-item--5 { grid-column: span 7; }
.kgn-pg-item--6 { grid-column: span 5; margin-top: clamp(30px, 5vh, 80px); }

.kgn-pg-item__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-tint-2);
}
.kgn-pg-item__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-out);
}
.kgn-pg-item:hover .kgn-pg-item__media img { transform: scale(1.04); }
.kgn-pg-item__meta { display: flex; flex-direction: column; gap: 8px; }
.kgn-pg-item__index {
    font-family: var(--f-primary); font-size: 11px;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--c-tint-4);
}
.kgn-pg-item__title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1;
    letter-spacing: -0.005em;
    color: var(--c-ink);
}
.kgn-pg-item__tag {
    font-family: var(--f-primary);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-tint-4);
}
.kgn-pg-item__desc {
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-ink-90);
    max-width: 48ch;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .kgn-pg-item, .kgn-pg-item--2, .kgn-pg-item--3, .kgn-pg-item--4, .kgn-pg-item--5, .kgn-pg-item--6 {
        grid-column: span 12;
        margin-top: 0;
    }
}

/* Hide old timeline portfolio styles (kept for safety with .kgn-portfolio class) */
.kgn-portfolio {
    background: var(--c-tint-1);
    padding: clamp(140px, 20vh, 240px) 0 0;
    overflow: hidden;
    display: none; /* legacy */
}
.kgn-portfolio__header { display: flex; flex-direction: column; align-items: flex-start; }
.kgn-portfolio__headline {
    font-family: var(--f-primary);
    text-transform: uppercase;
    font-size: clamp(64px, 10vw, 160px);
    line-height: 0.9;
    margin-top: 4px;
    display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap;
}
.kgn-portfolio__headline em {
    font-family: var(--f-script);
    font-style: normal;
    font-size: clamp(32px, 4vw, 64px);
    color: var(--c-tint-4);
    letter-spacing: 0;
    transform: translateY(-0.05em);
}
.kgn-portfolio__hint {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 28px;
    font-family: var(--f-primary); font-size: 13px; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--c-tint-4);
}

.kgn-timeline {
    position: relative;
    margin-top: clamp(100px, 14vh, 160px);
    padding: 0 0 160px;
}
/* One thin horizontal line — main rail running through the entire timeline */
.kgn-timeline__rail {
    position: absolute; left: 0; right: 0;
    top: 240px;
    height: 2px;
    background: var(--c-ink);
    z-index: 1;
    pointer-events: none;
}
.kgn-timeline__track {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: clamp(80px, 9vw, 160px);
    padding: 0 var(--gutter-lg);
    will-change: transform;
    z-index: 2;
}
.kgn-year {
    position: relative;
    flex-shrink: 0;
    width: clamp(260px, 20vw, 340px);
    display: flex; flex-direction: column;
    padding-top: 0;
}
/* Year sits above the rail; small vertical tick drops down from the year label to the rail */
.kgn-year__marker {
    position: relative;
    height: 240px;           /* matches rail top */
    display: flex; flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
}
.kgn-year__label {
    font-family: var(--f-script);
    font-weight: 400;
    font-size: clamp(72px, 8vw, 120px);
    line-height: 0.95;
    color: var(--c-ink);
    letter-spacing: 0;
    margin-bottom: 16px;
    transition: transform 500ms var(--ease-out);
}
.kgn-year:hover .kgn-year__label { transform: translateY(-4px); }
/* Vertical tick connecting the year to the main rail */
.kgn-year__marker::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: 0;
    width: 2px;
    height: 60px;
    background: var(--c-ink);
}
/* Small dot where the tick meets the rail */
.kgn-year__dot {
    display: block;
    position: absolute;
    left: 9px;
    bottom: -6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-ink);
    z-index: 3;
    transition: transform 400ms var(--ease-out);
    border: 0;
}
.kgn-year:hover .kgn-year__dot { transform: scale(1.6); }

.kgn-year__projects {
    margin-top: 32px;     /* sits under the rail */
    display: flex; flex-direction: column; gap: 2px;
    padding-left: 0;
}
.kgn-project {
    position: relative;
    border-top: 1px solid var(--c-tint-2);
}
.kgn-project:last-child { border-bottom: 1px solid var(--c-tint-2); }
.kgn-project__trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 18px 6px;
    text-align: left;
    gap: 16px;
    transition: padding-left 380ms var(--ease-out), background 380ms var(--ease-out);
}
.kgn-project:hover .kgn-project__trigger,
.kgn-project.is-active .kgn-project__trigger { padding-left: 22px; background: rgba(43,43,43,0.04); }
.kgn-project__title {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--c-ink);
    flex: 1;
}
.kgn-project.has-media .kgn-project__title::after {
    content: '↗'; display: inline-block; margin-left: 8px;
    color: var(--c-tint-4);
    transition: transform 380ms var(--ease-out);
}
.kgn-project.has-media:hover .kgn-project__title::after { transform: translate(3px, -3px); color: var(--c-ink); }
.kgn-project__tag {
    font-family: var(--f-primary); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-tint-4);
    padding: 4px 8px; border: 1px solid var(--c-tint-2);
    border-radius: 999px;
    flex-shrink: 0;
}

/* Floating hover card */
.kgn-project__card {
    position: fixed;
    left: 0; top: 0;
    z-index: 50;
    width: 320px;
    background: var(--c-paper);
    border: 1px solid var(--c-tint-2);
    padding: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
    box-shadow: 0 30px 60px -20px rgba(43,43,43,0.25);
}
.kgn-project.is-active .kgn-project__card { opacity: 1; transform: translateY(0); }
.kgn-project__cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; }
.kgn-project__desc { font-size: 13px; line-height: 1.5; color: var(--c-ink-90); margin-bottom: 8px; }
.kgn-project__cta { font-family: var(--f-primary); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink); }

@media (max-width: 900px) {
    .kgn-timeline { padding: 60px 0 100px; }
    .kgn-timeline__track {
        gap: 60px;
        padding: 0 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .kgn-year { width: 78vw; scroll-snap-align: start; }
    .kgn-project__card { display: none; }
}

/* =========================================================================
   CLIENTS
   ========================================================================= */
.kgn-clients {
    background: var(--c-ink);
    color: var(--c-paper);
    padding: clamp(120px, 16vh, 200px) 0;
}
.kgn-clients__headline {
    font-family: var(--f-primary);
    font-size: clamp(48px, 6vw, 96px);
    text-transform: uppercase; line-height: 1;
    margin-bottom: clamp(60px, 10vh, 100px);
    color: var(--c-paper);
}
/* Minimal marquee crawl — clients flow right-to-left */
.kgn-clients__inner { position: relative; }
.kgn-clients__marquee {
    margin-top: clamp(60px, 9vh, 100px);
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.kgn-clients__crawl {
    display: flex;
    width: max-content;
    align-items: center;
    gap: clamp(60px, 8vw, 120px);
    animation: kgnCrawl 50s linear infinite;
}
.kgn-clients__crawl:hover { animation-play-state: paused; }
.kgn-clients__crawl-item {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    height: clamp(60px, 7vw, 110px);
    width: auto;
}
.kgn-clients__crawl-item img {
    max-height: 100%; max-width: 220px; width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(2) contrast(0.7);
    opacity: 0.6;
    transition: filter 400ms var(--ease-out), opacity 400ms var(--ease-out);
}
.kgn-clients__crawl-item:hover img {
    filter: grayscale(0) brightness(1) contrast(1);
    opacity: 1;
}
@keyframes kgnCrawl {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .kgn-clients__crawl { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Legacy grid styles - hidden */
.kgn-clients__grid { display: none; }

/* =========================================================================
   LOCATION
   ========================================================================= */
.kgn-location {
    position: relative;
    min-height: 90vh;
    color: var(--c-paper);
    overflow: hidden;
    display: flex; align-items: flex-end;
    padding: clamp(60px, 10vh, 140px) 0;
}
.kgn-location__media { position: absolute; inset: 0; will-change: transform; }
.kgn-location__media img,
.kgn-location__media video {
    position: absolute; inset: 0;
    width: 100%; height: 110%;
    object-fit: cover; object-position: center;
}
.kgn-location__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(43,43,43,0.2) 0%, rgba(43,43,43,0.65) 100%);
}
.kgn-location__content { position: relative; z-index: 2; }
.kgn-location__headline {
    font-family: var(--f-primary);
    font-size: clamp(80px, 12vw, 200px);
    text-transform: uppercase; line-height: 0.9;
    color: var(--c-paper); margin-bottom: 48px;
}
.kgn-location__details {
    display: grid; gap: 12px;
    font-family: var(--f-primary);
    font-size: clamp(15px, 1.2vw, 18px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    max-width: 480px;
}
.kgn-location__address { font-style: normal; line-height: 1.6; letter-spacing: 0.16em; }
.kgn-location__line { display: inline-block; position: relative; }
.kgn-location__line::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 380ms var(--ease-out);
}
.kgn-location__line:hover::after { transform: scaleX(1); transform-origin: left; }
.kgn-location__map {
    margin-top: 48px;
    width: min(540px, 100%);
    aspect-ratio: 16 / 10;
    border: 1px solid var(--c-paper-30);
}
.kgn-location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.8) contrast(1.05); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.kgn-contact {
    background: var(--c-paper);
    padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 140px);
}
.kgn-contact__headline {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(56px, 8vw, 140px);
    line-height: 0.9;
}
.kgn-contact__hashtag {
    font-family: var(--f-primary);
    text-transform: uppercase;
    font-size: clamp(48px, 8.5vw, 160px);
    line-height: 0.95;
    letter-spacing: -0.015em;
    color: var(--c-ink);
    display: block;
    word-break: keep-all;
    white-space: normal;
}
.kgn-contact__hash {
    font-weight: 700;
    color: var(--c-tint-4);
    margin-right: 0.03em;
}
.kgn-contact__hb {
    font-weight: 700; /* Bebas Bold for LETS / YOUR */
}
.kgn-contact__hk {
    font-weight: 400; /* Bebas Book for TELL / STORY */
    opacity: 0.85;
}
.kgn-contact__subtext {
    margin-top: 24px;
    font-size: clamp(17px, 1.4vw, 22px);
    color: var(--c-ink-60);
    max-width: 48ch;
}
.kgn-form {
    margin-top: clamp(60px, 8vh, 100px);
    max-width: 720px;
    display: grid; gap: 32px;
}
.kgn-field { position: relative; }
.kgn-field input,
.kgn-field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--c-tint-2);
    padding: 22px 0 14px;
    font-size: 17px;
    color: var(--c-ink);
    outline: none;
    resize: none;
}
.kgn-field label {
    position: absolute; left: 0; top: 22px;
    font-size: 16px; color: var(--c-tint-4);
    pointer-events: none;
    transition: transform 350ms var(--ease-out), font-size 350ms var(--ease-out), color 350ms var(--ease-out);
}
.kgn-field input:focus + label,
.kgn-field input:not(:placeholder-shown) + label,
.kgn-field input:valid + label,
.kgn-field textarea:focus + label,
.kgn-field textarea:not(:placeholder-shown) + label,
.kgn-field input[value]:not([value=""]) + label {
    transform: translateY(-22px); font-size: 12px; letter-spacing: 0.18em;
    color: var(--c-ink); text-transform: uppercase;
}
.kgn-field input,
.kgn-field textarea { /* placeholder hack — keep them in floating state when not empty */ }
.kgn-field input::placeholder,
.kgn-field textarea::placeholder { color: transparent; }
.kgn-field input,
.kgn-field textarea { caret-color: var(--c-ink); }
.kgn-field__line {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--c-ink);
    transform: scaleX(0); transform-origin: left;
    transition: transform 450ms var(--ease-out);
}
.kgn-field input:focus ~ .kgn-field__line,
.kgn-field textarea:focus ~ .kgn-field__line { transform: scaleX(1); }
.kgn-field--textarea textarea { min-height: 120px; }
.kgn-field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; }

/* Place placeholder=" " so :placeholder-shown works for floating label even without value */
.kgn-field input:not([type="checkbox"]),
.kgn-field textarea { /* placeholder is empty by default */ }

.kgn-form__actions { display: flex; align-items: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.kgn-form__status {
    font-family: var(--f-primary); font-size: 13px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-tint-4);
}
.kgn-form__status.is-success { color: var(--c-ink); }
.kgn-form__status.is-error { color: #c0392b; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.kgn-footer {
    background: var(--c-ink); color: var(--c-paper);
    padding: 80px 0 40px;
}
.kgn-footer__inner {
    width: var(--container); margin-inline: auto;
    display: grid; gap: 40px;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
}
.kgn-footer__brand {
    display: flex; align-items: center; color: var(--c-paper);
}
.kgn-footer__brand .kgn-wordmark { width: auto; height: 80px; }
.kgn-footer__copy {
    font-size: 13px; line-height: 1.6; color: var(--c-paper-60);
}
.kgn-footer__social { display: flex; gap: 22px; justify-content: flex-end; align-items: center; }
.kgn-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: var(--c-paper-60);
    border-radius: 50%;
    transition: color 300ms var(--ease-out), background 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.kgn-footer__social a:hover {
    color: var(--c-paper);
    background: rgba(255,253,246,0.08);
    transform: translateY(-2px);
}
.kgn-footer__legal {
    grid-column: 1 / -1;
    margin-top: 40px;
    border-top: 1px solid rgba(255,253,246,0.15);
    padding-top: 24px;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-paper-30);
}
@media (max-width: 768px) {
    .kgn-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .kgn-footer__social { justify-content: flex-start; }
}

/* =========================================================================
   MODAL
   ========================================================================= */
.kgn-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(43,43,43,0.94);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    opacity: 0; transition: opacity 400ms var(--ease-out);
}
.kgn-modal[hidden] { display: none; }
.kgn-modal.is-open { opacity: 1; }
.kgn-modal__close {
    position: absolute; top: 24px; right: 24px;
    width: 48px; height: 48px;
    color: var(--c-paper);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 300ms;
}
.kgn-modal__close:hover { background: rgba(255,253,246,0.1); }
.kgn-modal__inner {
    width: min(1280px, 100%); max-height: 86vh;
    display: flex; align-items: center; justify-content: center;
}
.kgn-modal__inner video,
.kgn-modal__inner img {
    max-width: 100%; max-height: 86vh;
    width: auto; height: auto;
    background: var(--c-ink);
}

/* =========================================================================
   REVEAL ANIMATION DEFAULTS
   ========================================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1400ms var(--ease-out), transform 1400ms var(--ease-out);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Headline reveal: clip-path wipe + slide */
[data-reveal-line] {
    opacity: 0;
    transform: translateY(60px);
    clip-path: inset(-0.3em -0.1em 100% -0.1em);
    transition:
        opacity 1400ms var(--ease-out),
        transform 1600ms var(--ease-out),
        clip-path 1600ms var(--ease-out);
}
[data-reveal-line].is-visible {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(-0.3em -0.1em -0.3em -0.1em);
}

/* Hero claim slow fade */
[data-reveal-claim] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1800ms var(--ease-out), transform 1800ms var(--ease-out);
    transition-delay: 400ms;
}
[data-reveal-claim].is-visible { opacity: 1; transform: translateY(0); }

/* Editorial section numbers — top-right of each section, in script font (Julietta) */
.kgn-about::before,
.kgn-timeline-sec::before,
.kgn-portfolio-grid::before,
.kgn-clients::before,
.kgn-location::before,
.kgn-contact::before {
    position: absolute;
    top: clamp(40px, 6vh, 90px);
    right: clamp(24px, 4vw, 56px);
    font-family: var(--f-script);
    font-size: clamp(40px, 4vw, 64px);
    color: var(--c-tint-4);
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0;
    line-height: 1;
}
.kgn-about,
.kgn-timeline-sec,
.kgn-portfolio-grid,
.kgn-clients,
.kgn-location,
.kgn-contact { position: relative; }

.kgn-about::before         { content: '01'; }
.kgn-timeline-sec::before  { content: '02'; }
.kgn-portfolio-grid::before{ content: '03'; }
.kgn-clients::before       { content: '04'; color: rgba(255,253,246,0.35); }
.kgn-location::before      { content: '05'; color: rgba(255,253,246,0.55); }
.kgn-contact::before       { content: '06'; }

/* =========================================================================
   404
   ========================================================================= */
.kgn-404 {
    min-height: 100vh;
    background: var(--c-paper);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.kgn-404 h1 { font-family: var(--f-primary); font-size: clamp(120px, 20vw, 320px); line-height: 1; }
.kgn-404 p  { font-size: 18px; margin: 24px 0 40px; color: var(--c-ink-60); }

/* =========================================================================
   EDITORIAL CLONE (inspired by valeriiagolma.com) — uses KGN brand palette,
   logo + claim. Overrides any conflicting styles above.
   ========================================================================= */

/* Liquid-glass nav — translucent + saturated blur, edge-to-edge */
.kgn-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(255, 253, 246, 0.45);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 0;
    border-bottom: 1px solid rgba(43,43,43,0.08);
    border-radius: 0;
    box-shadow:
        inset 0 1px 0 rgba(255,253,246,0.55),
        0 8px 28px -16px rgba(43,43,43,0.18);
    color: var(--c-ink);
    transition: padding 300ms var(--ease-out), background 300ms var(--ease-out);
}
.kgn-nav.is-scrolled {
    padding: 12px clamp(20px, 4vw, 56px);
    background: rgba(255, 253, 246, 0.55);
}
.kgn-nav__row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 28px;
    max-width: 1680px;
    margin: 0 auto;
}
.kgn-nav__social {
    display: flex; align-items: center; gap: 14px;
    margin: 0; padding: 0; list-style: none;
}
.kgn-nav__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    color: var(--c-ink);
    transition: color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.kgn-nav__social a:hover { transform: translateY(-2px); }
@media (max-width: 1100px) { .kgn-nav__social { display: none; } }
.kgn-nav__logo {
    display: inline-flex; align-items: center;
    color: var(--c-ink);
}
.kgn-nav__logo .kgn-wordmark { width: auto; height: 38px; display: block; }

.kgn-nav__links {
    justify-self: end;
    display: flex; gap: clamp(20px, 3vw, 44px);
}
.kgn-nav__links a {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink);
    padding: 4px 0;
    position: relative;
}
.kgn-nav__links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 380ms var(--ease-out);
}
.kgn-nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.kgn-nav__cta {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-paper);
}
.kgn-nav__cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    background: var(--c-ink);
    color: var(--c-paper);
    border-radius: 999px;
    transition: background 300ms var(--ease-out);
}
.kgn-nav__cta:hover { background: #000; }
.kgn-nav__cta-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-paper);
    box-shadow: 0 0 0 2px rgba(255,253,246,0.3);
    animation: kgnDotPulse 2.4s ease-in-out infinite;
}
@keyframes kgnDotPulse { 0%,100% {opacity: 0.6;} 50% {opacity: 1;} }

.kgn-nav__lang { background: rgba(43,43,43,0.06); border-color: rgba(43,43,43,0.16); padding: 3px; }
.kgn-nav__lang::before {
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(255,253,246,0.5), transparent 60%),
        radial-gradient(120% 80% at 70% 100%, rgba(43,43,43,0.06), transparent 60%);
}
.kgn-nav__lang-pill { background: var(--c-ink); }
.kgn-nav__lang-link { color: var(--c-tint-4); padding: 4px 12px; font-size: 11px; }
.kgn-nav__lang-link.is-current { color: var(--c-paper); }

.kgn-nav__toggle { display: none; flex-direction: column; gap: 5px; }
.kgn-nav__toggle span { width: 24px; height: 1.5px; background: var(--c-ink); }

@media (max-width: 1100px) {
    .kgn-nav__pills, .kgn-nav__follow, .kgn-nav__time { display: none; }
    .kgn-nav__row { grid-template-columns: auto 1fr auto auto; }
}
@media (max-width: 768px) {
    .kgn-nav__lang { display: none; }
    .kgn-nav__role { display: none; }
}

/* =========================================================================
   HERO — full-bleed video + centered CLAIM.svg
   ========================================================================= */
.kgn-vg-hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    background: var(--c-ink);
    color: var(--c-paper);
    overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: clamp(60px, 11vh, 140px);
}
.kgn-vg-hero__media {
    position: absolute; inset: 0;
    overflow: hidden;
    will-change: transform;
}
.kgn-vg-hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 12s ease-out;
}
.kgn-vg-hero.is-loaded .kgn-vg-hero__video { transform: scale(1); }
.kgn-vg-hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(43,43,43,0.25) 0%, rgba(43,43,43,0.15) 35%, rgba(43,43,43,0.55) 100%);
    pointer-events: none;
}

.kgn-vg-hero__claim {
    position: relative;
    z-index: 2;
    width: clamp(260px, 32vw, 480px);
    color: var(--c-paper);
    isolation: isolate;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out);
}
.kgn-vg-hero__claim.is-revealed,
[data-reveal-claim].is-visible { opacity: 1; transform: translateY(0); }

/* Liquid glass plate behind the claim — softens the busy video underneath */
.kgn-vg-hero__claim-glass {
    position: absolute;
    inset: -10% -14% -14% -14%;
    z-index: -1;
    background: rgba(43, 43, 43, 0.18);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 36px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 100%);
}
.kgn-vg-hero__claim-inner {
    position: relative;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
}
.kgn-vg-hero__claim .kgn-claim-svg { width: 100%; height: auto; display: block; }

/* "everything is" — fade + slight slide-in */
.kgn-claim-svg__top {
    opacity: 0;
    transform: translateX(-12px);
    transform-origin: left center;
    transition: opacity 1.4s var(--ease-out) 200ms, transform 1.4s var(--ease-out) 200ms;
}
.kgn-vg-hero__claim.is-revealed .kgn-claim-svg__top,
[data-reveal-claim].is-visible .kgn-claim-svg__top {
    opacity: 1;
    transform: translateX(0);
}

/* "Story" — clip-path wipe simulates handwriting */
.kgn-claim-svg__script {
    -webkit-clip-path: inset(-4% 100% -4% -4%);
    clip-path: inset(-4% 100% -4% -4%);
    transition: -webkit-clip-path 3.2s cubic-bezier(0.45, 0, 0.18, 1) 900ms,
                clip-path 3.2s cubic-bezier(0.45, 0, 0.18, 1) 900ms;
}
.kgn-vg-hero__claim.is-revealed .kgn-claim-svg__script,
[data-reveal-claim].is-visible .kgn-claim-svg__script {
    -webkit-clip-path: inset(-4% -4% -4% -4%);
    clip-path: inset(-4% -4% -4% -4%);
}

@media (max-width: 768px) {
    .kgn-vg-hero__claim { width: 68vw; }
}

/* =========================================================================
   HEADLINE BLOCK — "Not just video."
   ========================================================================= */
.kgn-vg-headline {
    background: var(--c-paper);
    padding: clamp(140px, 22vh, 240px) clamp(28px, 5vw, 96px);
}
.kgn-vg-headline__inner { max-width: 1680px; margin: 0 auto; }
.kgn-vg-headline__main {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(64px, 11vw, 200px);
    line-height: 0.92;
    letter-spacing: -0.012em;
    color: var(--c-ink);
    margin: 0;
    max-width: 18ch;
}
.kgn-vg-headline__sub {
    margin-top: 32px;
    font-family: var(--f-body);
    font-size: clamp(18px, 1.5vw, 24px);
    color: var(--c-ink);
    font-weight: 400;
    max-width: 48ch;
    line-height: 1.4;
}
.kgn-vg-headline__hashtag {
    margin: 48px 0 0;
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(28px, 4vw, 64px);
    line-height: 1;
    letter-spacing: -0.005em;
    color: var(--c-ink);
    display: inline-flex; align-items: baseline;
    gap: 0;
    padding-left: clamp(20px, 4vw, 80px);
}
.kgn-vg-headline__hashtag .kgn-vg-hash { font-weight: 700; }
.kgn-vg-headline__hashtag span + span { margin-left: 0; }

/* =========================================================================
   ABOUT US — Not just Video + KGN paragraph + mission
   ========================================================================= */
.kgn-vg-about {
    background: var(--c-paper);
    padding: clamp(140px, 22vh, 260px) clamp(28px, 5vw, 96px) clamp(140px, 22vh, 240px);
}
.kgn-vg-about__inner {
    max-width: 1480px; margin: 0 auto;
}
.kgn-vg-about__inner--withmedia {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 5vw, 100px);
    align-items: start;
}
.kgn-vg-about__copy { min-width: 0; }
.kgn-vg-about__media {
    margin: 0;
    position: sticky;
    top: 110px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    max-height: calc(100vh - 140px);
}
.kgn-vg-about__video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(1.02);
}
@media (max-width: 900px) {
    .kgn-vg-about__inner--withmedia { grid-template-columns: 1fr; }
    .kgn-vg-about__media { position: static; max-width: 560px; aspect-ratio: 16 / 9; }
}

/* =========================================================================
   ANIM container — replaces .kgn-fontswap for the inline word animations.
   The <video> drives the whole animation; we just lock the bounds so
   surrounding text doesn't reflow.
   ========================================================================= */
.kgn-vg-anim {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    overflow: hidden;
    isolation: isolate;
    /* The PNG sequence is 1200×400, aspect 3:1 — keep that ratio */
}
.kgn-vg-anim__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    pointer-events: none;
}

/* Full-width APNG headline animations — replace the typed line entirely.
   The Not Just Video / #EverythingIsStory PNG sequences contain the whole
   phrase rendered with native alpha. <img> with .png (APNG) plays natively. */
.kgn-vg-about__main--anim {
    padding: 0;
    line-height: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 0 clamp(80px, 12vh, 160px);
}
.kgn-vg-about__main--anim .kgn-vg-headline-anim {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    object-fit: contain;
}
.kgn-vg-contact__closing .kgn-vg-contact__hashtag--anim {
    display: block;
    margin: 0 auto clamp(36px, 5vh, 64px);
    padding: 0;
    line-height: 0;
    width: 100%;
    max-width: 720px;
    text-align: center;
    gap: 0;
}
.kgn-vg-contact__closing .kgn-vg-contact__hashtag--anim .kgn-vg-hashtag-anim {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    object-fit: contain;
}
.kgn-vg-about__main {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(64px, 11vw, 200px);
    line-height: 0.92;
    letter-spacing: -0.012em;
    color: var(--c-ink);
    margin: 24px 0 0;
}
.kgn-vg-about__sub {
    margin-top: 24px;
    font-family: var(--f-body);
    font-weight: 400;
    font-size: clamp(18px, 1.5vw, 24px);
    color: var(--c-ink);
    line-height: 1.4;
    max-width: 48ch;
}
.kgn-vg-about__lead {
    margin-top: clamp(80px, 10vh, 140px);
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(28px, 3.4vw, 56px);
    line-height: 1.05;
    color: var(--c-ink);
    max-width: 24ch;
}
.kgn-vg-about__lead em {
    font-family: var(--f-script);
    font-weight: 400; font-style: normal;
    font-size: 1.1em; line-height: 0.9;
    color: var(--c-ink);
    text-transform: none;
    letter-spacing: 0;
}
.kgn-vg-about__mission {
    margin-top: clamp(40px, 6vh, 80px);
    font-family: var(--f-body);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.55;
    color: var(--c-ink);
    max-width: 54ch;
    font-weight: 400;
}
.kgn-vg-about__mission em {
    font-family: var(--f-script);
    font-weight: 400; font-style: normal;
    font-size: 1.4em; line-height: 0.9;
    color: var(--c-ink);
    vertical-align: baseline;
}
.kgn-vg-eyebrow {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-ink);
    display: inline-block; margin-bottom: 40px;
}
.kgn-vg-about__lead {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(28px, 3.4vw, 56px);
    line-height: 1.05;
    color: var(--c-ink);
    margin: 0;
}
.kgn-vg-about__lead em {
    font-family: var(--f-script);
    font-weight: 400; font-style: normal;
    font-size: 1.1em; line-height: 0.9;
    color: var(--c-tint-4); text-transform: none;
}
/* Scroll-driven word colorization */
.kgn-vg-color-word {
    color: rgba(43, 43, 43, 0.22);
    display: inline-block;
    will-change: color;
}
[data-color-reveal] em .kgn-vg-color-word,
[data-color-reveal] em.kgn-vg-color-word {
    color: rgba(43, 43, 43, 0.28);
}
/* Montserrat Regular span (overrides parent script/bold font) */
.kgn-vg-mont {
    font-family: var(--f-body);
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78em;
    line-height: 1;
}
.kgn-vg-about__body {
    margin-top: 32px;
    font-family: var(--f-body);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.6;
    color: var(--c-ink-90);
    font-weight: 300;
    max-width: 52ch;
}
.kgn-vg-about__signoff {
    margin-top: 24px;
    font-family: var(--f-body);
    font-style: italic;
    font-size: 14px;
    color: var(--c-tint-4);
}
.kgn-vg-about__media {
    margin: 0;
    transform: translateY(40px);
}
.kgn-vg-about__media img {
    width: 100%; height: auto; aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.kgn-vg-about__media figcaption {
    margin-top: 14px;
    font-family: var(--f-body);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-tint-4);
}

@media (max-width: 900px) {
    .kgn-vg-about__inner { grid-template-columns: 1fr; }
    .kgn-vg-about__media { transform: none; max-width: 480px; }
}

/* =========================================================================
   SE:RVICES
   ========================================================================= */
.kgn-vg-services {
    background: var(--c-ink);
    color: var(--c-paper);
    padding: clamp(140px, 22vh, 240px) clamp(28px, 5vw, 96px);
}
.kgn-vg-services__inner {
    max-width: 1480px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(48px, 6vw, 120px);
    align-items: start;
}
.kgn-vg-services__copy {
    display: flex;
    flex-direction: column;
}
.kgn-vg-services__title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(64px, 8vw, 140px);
    line-height: 1;
    margin: 0 0 clamp(40px, 6vh, 80px);
    color: var(--c-paper);
}
.kgn-vg-services__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 0;
}
.kgn-vg-services__item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 18px 0;
    transition: padding-left 380ms var(--ease-out);
}
.kgn-vg-services__item:hover { padding-left: 16px; }
.kgn-vg-services__num {
    font-family: var(--f-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--c-tint-3);
}
.kgn-vg-services__name {
    font-family: var(--f-primary);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: 1.1;
    color: var(--c-paper);
}
.kgn-vg-services__line {
    margin: clamp(56px, 9vh, 100px) 0 0;
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(28px, 3.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: var(--c-paper);
    text-align: left;
    max-width: 22ch;
}
.kgn-vg-services__media {
    position: sticky;
    top: clamp(80px, 14vh, 160px);
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #000;
}
.kgn-vg-services__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 900px) {
    .kgn-vg-services__inner { grid-template-columns: 1fr; }
    .kgn-vg-services__media { position: static; aspect-ratio: 4 / 5; max-width: 520px; margin: clamp(40px, 8vw, 80px) auto 0; }
}

/* =========================================================================
   wo:rks portfolio gallery + pull quote
   ========================================================================= */
.kgn-vg-works {
    background: var(--c-paper);
    color: var(--c-ink);
    padding: clamp(140px, 22vh, 240px) clamp(28px, 5vw, 96px);
}
.kgn-vg-works__head {
    max-width: 1680px; margin: 0 auto;
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.kgn-vg-works__title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(64px, 10vw, 180px);
    line-height: 1;
    margin: 0;
}
.kgn-vg-works__sub {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.kgn-vg-works__quote {
    max-width: 1680px; margin: clamp(60px, 9vh, 100px) auto;
    padding: 0 6vw;
}
.kgn-vg-works__quote p {
    font-family: var(--f-script);
    font-size: clamp(28px, 4vw, 64px);
    line-height: 1.25;
    color: var(--c-ink);
    max-width: 32ch;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.12em;
}
.kgn-vg-works__quote-line {
    display: block;
    padding: 0.08em 0.18em;
    margin: 0 -0.18em;
}
.kgn-vg-works__quote-word {
    display: inline-block;
    white-space: nowrap;
}
.kgn-vg-works__quote-letter {
    display: inline-block;
    clip-path: inset(-0.2em 100% -0.35em 0);
    transition: clip-path 360ms cubic-bezier(0.5, 0, 0.2, 1);
    will-change: clip-path;
}
.kgn-vg-works__quote.is-writing .kgn-vg-works__quote-letter {
    clip-path: inset(-0.2em -0.18em -0.35em -0.18em);
}
/* Horizontal-scroll portfolio */
.kgn-vg-works__hscroll {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.kgn-vg-works__track {
    display: flex;
    align-items: center;
    gap: clamp(28px, 3vw, 56px);
    padding: clamp(40px, 6vh, 80px) clamp(28px, 5vw, 96px);
    will-change: transform;
}
.kgn-vg-work {
    flex: 0 0 auto;
    width: clamp(360px, 36vw, 600px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
}
.kgn-vg-work:nth-child(7n+1) { margin-top: clamp(40px,  7vh, 120px); }
.kgn-vg-work:nth-child(7n+2) { margin-top: clamp(80px, 12vh, 180px); }
.kgn-vg-work:nth-child(7n+3) { margin-top: clamp(20px,  3vh,  60px); }
.kgn-vg-work:nth-child(7n+4) { margin-top: clamp(100px,15vh, 220px); }
.kgn-vg-work:nth-child(7n+5) { margin-top: clamp(50px,  9vh, 140px); }
.kgn-vg-work:nth-child(7n+6) { margin-top: clamp(30px,  5vh,  80px); }
.kgn-vg-work:nth-child(7n)   { margin-top: clamp(70px, 11vh, 160px); }

.kgn-vg-work__card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    perspective: 1400px;
    box-shadow:
        0 24px 50px -22px rgba(43, 43, 43, 0.45),
        0 10px 22px -12px rgba(43, 43, 43, 0.28);
    transition: box-shadow 420ms var(--ease-out), transform 600ms var(--ease-out);
    will-change: transform;
}
.kgn-vg-work:nth-child(7n+1) .kgn-vg-work__card { transform: rotate(-1.2deg); }
.kgn-vg-work:nth-child(7n+2) .kgn-vg-work__card { transform: rotate( 0.8deg) translateY(-8px); }
.kgn-vg-work:nth-child(7n+3) .kgn-vg-work__card { transform: rotate( 0.4deg) translateY(10px); }
.kgn-vg-work:nth-child(7n+4) .kgn-vg-work__card { transform: rotate(-0.6deg) translateY(-4px); }
.kgn-vg-work:nth-child(7n+5) .kgn-vg-work__card { transform: rotate( 1.1deg) translateY(6px); }
.kgn-vg-work:nth-child(7n+6) .kgn-vg-work__card { transform: rotate(-0.9deg); }
.kgn-vg-work:nth-child(7n)   .kgn-vg-work__card { transform: rotate( 0.5deg) translateY(-10px); }
.kgn-vg-work__card:hover {
    box-shadow:
        0 32px 64px -22px rgba(43, 43, 43, 0.55),
        0 14px 28px -14px rgba(43, 43, 43, 0.35);
}
.kgn-vg-work__face {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    padding: 0;
    border: 0;
    background: var(--c-tint-2);
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 900ms cubic-bezier(0.6, 0.05, 0.2, 1);
    cursor: pointer;
    color: var(--c-ink);
    font: inherit;
    text-align: left;
}
.kgn-vg-work__face--front { transform: rotateY(0deg);   z-index: 2; }
.kgn-vg-work__face--back  { transform: rotateY(180deg); z-index: 1; background: var(--c-ink); color: var(--c-paper); cursor: pointer; }
.kgn-vg-work__card.is-flipped .kgn-vg-work__face--front { transform: rotateY(-180deg); z-index: 1; }
.kgn-vg-work__card.is-flipped .kgn-vg-work__face--back  { transform: rotateY(0deg);    z-index: 2; }

.kgn-vg-work__img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform 1200ms var(--ease-out), filter 900ms var(--ease-out);
    filter: grayscale(1) contrast(1.02);
}
.kgn-vg-work__face--front:hover .kgn-vg-work__img,
.kgn-vg-work__face--front:focus-visible .kgn-vg-work__img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.04);
}
.kgn-vg-work__hover-hint {
    position: absolute; bottom: 18px; right: 18px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(43,43,43,0.85);
    color: var(--c-paper);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
    pointer-events: none;
}
.kgn-vg-work__face--front:hover .kgn-vg-work__hover-hint,
.kgn-vg-work__face--front:focus-visible .kgn-vg-work__hover-hint {
    opacity: 1; transform: translateY(0);
}

/* Back face content */
.kgn-vg-work__face--back {
    display: flex; flex-direction: column;
    padding: clamp(22px, 2.4vw, 36px);
    gap: 14px;
}
.kgn-vg-work__back-head { display: flex; flex-direction: column; gap: 4px; }
.kgn-vg-work__back-idx {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-tint-3);
}
.kgn-vg-work__back-title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.05;
    margin: 2px 0 4px;
    color: var(--c-paper);
}
.kgn-vg-work__back-role {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-tint-3);
}
.kgn-vg-work__back-list {
    list-style: none; margin: 0; padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    font-family: var(--f-body);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--c-paper);
}
.kgn-vg-work__back-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,253,246,0.08);
}
.kgn-vg-work__back-list li:last-child { border-bottom: 0; }
.kgn-vg-work__back-foot {
    font-family: var(--f-body);
    font-size: 11px;
    line-height: 1.5;
    color: var(--c-tint-3);
    display: flex; flex-direction: column; gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,253,246,0.12);
}
.kgn-vg-work__back-foot strong { color: var(--c-paper); font-weight: 600; }
.kgn-vg-work__back-foot a {
    color: var(--c-paper);
    border-bottom: 1px solid rgba(255,253,246,0.3);
    text-decoration: none;
    transition: border-color 240ms var(--ease-out);
}
.kgn-vg-work__back-foot a:hover { border-bottom-color: var(--c-paper); }
.kgn-vg-work__back-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: 0;
    background: rgba(255,253,246,0.06);
    color: var(--c-paper);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 220ms var(--ease-out);
}
.kgn-vg-work__back-close:hover { background: rgba(255,253,246,0.16); }

/* Caption under card */
.kgn-vg-work__caption {
    display: flex; align-items: baseline; gap: 12px;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.kgn-vg-work__caption-idx { color: var(--c-tint-3); font-weight: 600; }
.kgn-vg-work__caption-title {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: clamp(15px, 1.2vw, 19px);
    letter-spacing: 0.04em;
    color: var(--c-ink);
}

/* Scroll hint */
.kgn-vg-works__hint {
    position: absolute;
    right: clamp(28px, 5vw, 96px);
    top: 28px;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-body);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-ink);
    opacity: 0.7;
}

@media (max-width: 900px) {
    .kgn-vg-works__hscroll { overflow-x: auto; scroll-snap-type: x mandatory; }
    .kgn-vg-works__track { padding-inline: clamp(20px, 5vw, 40px); transform: none !important; padding-block: clamp(20px, 3vh, 40px); }
    .kgn-vg-work { width: 78vw; scroll-snap-align: center; margin-top: 0 !important; }
    .kgn-vg-work .kgn-vg-work__card { transform: none !important; }
    .kgn-vg-works__hint { display: none; }
}
@media (max-width: 720px) {
    .kgn-vg-works { padding-top: clamp(60px, 10vh, 100px); padding-bottom: clamp(20px, 3vh, 40px); }
    .kgn-vg-clients { padding-top: clamp(20px, 4vh, 40px); padding-bottom: clamp(28px, 5vh, 56px); }
    .kgn-vg-clients__title { margin-bottom: clamp(16px, 3vh, 28px); }
}

/* Clients crawl — infinite marquee under Works */
.kgn-vg-clients {
    padding: clamp(60px, 9vh, 120px) 0 clamp(40px, 6vh, 80px);
    border-top: 1px solid rgba(43, 43, 43, 0.10);
    background: transparent;
    overflow: hidden;
}
.kgn-vg-clients__title {
    text-align: center;
    margin: 0 0 clamp(28px, 4vh, 48px);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.kgn-vg-clients__viewport {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.kgn-vg-clients__track {
    display: flex;
    gap: clamp(48px, 6vw, 96px);
    width: max-content;
    align-items: center;
    animation: kgn-clients-marquee 60s linear infinite;
}
.kgn-vg-clients:hover .kgn-vg-clients__track { animation-play-state: paused; }
.kgn-vg-client {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0;
}
.kgn-vg-client__logo {
    display: inline-flex; align-items: center; justify-content: center;
    height: clamp(48px, 6vh, 72px);
    width: auto;
}
.kgn-vg-client__logo img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05) opacity(0.65);
    transition: filter 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.kgn-vg-client:hover .kgn-vg-client__logo img {
    filter: grayscale(0) contrast(1) opacity(1);
    transform: scale(1.04);
}
.kgn-vg-client__name {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-tint-3);
    transition: color 360ms var(--ease-out);
}
.kgn-vg-client:hover .kgn-vg-client__name { color: var(--c-ink); }

@keyframes kgn-clients-marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .kgn-vg-clients__track { animation: none; transform: none; }
}

/* =========================================================================
   CONTACT — Begin Your Story
   ========================================================================= */
.kgn-vg-contact {
    background: var(--c-paper);
    color: var(--c-ink);
    padding: clamp(140px, 22vh, 240px) clamp(28px, 5vw, 96px);
}
.kgn-vg-contact__head {
    max-width: 1080px; margin: 0 auto clamp(60px, 9vh, 110px);
    text-align: center;
}

.kgn-vg-contact__split {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: stretch;
}
.kgn-vg-contact__photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    min-height: 720px;
    aspect-ratio: 4 / 5;
    background: var(--c-ink);
}
.kgn-vg-contact__photo > video,
.kgn-vg-contact__photo > img,
.kgn-vg-contact__photo-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}
/* Override the earlier .kgn-vg-contact__photo img absolute rule that used object-fit cover already — we keep it but ensure no max-width caps it. */
.kgn-vg-contact__photo img { max-width: none; max-height: none; }
.kgn-vg-contact__photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1800ms var(--ease-out);
    transform: scale(1.08);
}
.kgn-vg-contact__photo.is-visible img { transform: scale(1); }
.kgn-vg-contact__photo-overlay {
    position: absolute; inset: 0;
    z-index: 2;
    display: flex; flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: clamp(28px, 4vw, 56px);
    background: linear-gradient(180deg,
        rgba(43,43,43,0) 0%,
        rgba(43,43,43,0.05) 35%,
        rgba(43,43,43,0.45) 75%,
        rgba(43,43,43,0.75) 100%);
    color: var(--c-paper);
}
.kgn-vg-contact__photo-eyebrow {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-paper);
    opacity: 0.85;
    margin-bottom: 18px;
}
.kgn-vg-contact__photo-eyebrow::before {
    content: ''; display: inline-block;
    width: 30px; height: 1px; background: currentColor;
    vertical-align: middle; margin-right: 12px; transform: translateY(-2px);
}
.kgn-vg-contact__photo-city {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: clamp(56px, 7vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    color: var(--c-paper);
    margin: 0 0 28px;
    text-transform: uppercase;
}
.kgn-vg-contact__photo-address {
    font-style: normal;
    font-family: var(--f-primary);
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.65;
    color: var(--c-paper);
    margin-bottom: 14px;
}
.kgn-vg-contact__photo-email {
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-paper);
    position: relative;
    align-self: flex-start;
}
.kgn-vg-contact__photo-email::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 1px; background: currentColor;
    transform: scaleX(1); transform-origin: left;
    transition: transform 380ms var(--ease-out);
}
.kgn-vg-contact__photo-email:hover::after { transform: scaleX(0); transform-origin: right; }

.kgn-vg-contact__form {
    align-self: center;
}

@media (max-width: 1100px) {
    .kgn-vg-contact__split { grid-template-columns: 1fr; }
    .kgn-vg-contact__photo { min-height: 520px; aspect-ratio: 16 / 10; }
    .kgn-vg-contact__form { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
    .kgn-vg-contact__photo { min-height: 420px; aspect-ratio: 4 / 5; }
}

.kgn-vg-contact__inner {
    max-width: 1080px; margin: 0 auto;
}
.kgn-vg-contact__head {
    text-align: center;
    margin-bottom: clamp(60px, 9vh, 110px);
}
.kgn-vg-contact__title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(56px, 9vw, 160px);
    line-height: 1;
    margin: 16px 0 0;
    color: var(--c-ink);
}
.kgn-vg-contact__intro {
    margin-top: 28px;
    font-family: var(--f-body);
    font-size: clamp(15px, 1.2vw, 19px);
    color: var(--c-ink);
    max-width: 46ch; margin-left: auto; margin-right: auto;
    line-height: 1.5;
}

.kgn-field--select select {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--c-tint-2);
    padding: 22px 0 14px;
    font-size: 17px;
    color: var(--c-ink);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.kgn-vg-submit {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 20px 56px;
    border-radius: 999px;
    background: rgba(43, 43, 43, 0.55);
    color: var(--c-paper);
    border: 1px solid rgba(255, 253, 246, 0.18);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 246, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        0 18px 40px -18px rgba(43, 43, 43, 0.55),
        0 8px 18px -10px rgba(43, 43, 43, 0.4);
    font-family: var(--f-primary);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: background 320ms var(--ease-out), transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.kgn-vg-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 253, 246, 0.22) 0%, rgba(255, 253, 246, 0) 45%, rgba(255, 253, 246, 0) 60%, rgba(255, 253, 246, 0.10) 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 320ms var(--ease-out);
}
.kgn-vg-submit:hover {
    background: rgba(43, 43, 43, 0.72);
    border-color: rgba(255, 253, 246, 0.28);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 246, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 24px 48px -20px rgba(43, 43, 43, 0.65),
        0 10px 22px -10px rgba(43, 43, 43, 0.5);
}
.kgn-vg-submit:active { transform: translateY(0); }
.kgn-vg-submit:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }

.kgn-vg-contact__closing {
    margin-top: clamp(80px, 12vh, 140px);
    text-align: center;
    color: var(--c-ink);
}
.kgn-vg-contact__hashtag {
    margin: 0;
    font-family: var(--f-primary);
    text-transform: uppercase;
    font-size: clamp(40px, 7vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    display: flex; align-items: baseline; justify-content: center;
    gap: 0.04em;
    word-break: keep-all;
}
.kgn-vg-contact__closing-line {
    margin: 24px 0 0;
    font-family: var(--f-primary);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: 0.22em;
    color: var(--c-ink);
}
.kgn-vg-hash { font-weight: 700; }
.kgn-vg-bold { font-weight: 700; }
.kgn-vg-book { font-weight: 400; }

/* =========================================================================
   FOOTER editorial
   ========================================================================= */
.kgn-vg-footer {
    background: var(--c-paper);
    color: var(--c-ink);
    padding: 40px clamp(28px, 5vw, 96px);
    border-top: 1px solid rgba(43,43,43,0.12);
}
.kgn-vg-footer__row {
    max-width: 1680px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.kgn-vg-footer__brand {
    display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px);
}
.kgn-vg-footer__logo { display: inline-flex; color: var(--c-ink); flex: 0 0 auto; }
.kgn-vg-footer__logo .kgn-wordmark { width: auto; height: 56px; display: block; }
.kgn-vg-footer__contact {
    font-style: normal;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--c-ink);
}
.kgn-vg-footer__email {
    color: var(--c-ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(43,43,43,0.35);
    transition: border-color 240ms var(--ease-out);
}
.kgn-vg-footer__email:hover { border-bottom-color: var(--c-ink); }
.kgn-vg-footer__social {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 18px;
}
.kgn-vg-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--c-ink);
    transition: transform 300ms var(--ease-out);
}
.kgn-vg-footer__social a:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
    .kgn-vg-footer__row { flex-wrap: wrap; gap: 28px; }
    .kgn-vg-footer__brand { width: 100%; }
}

/* Hide legacy sections used in old layout */
.kgn-hero, .kgn-about, .kgn-portfolio, .kgn-clients, .kgn-location, .kgn-contact,
.kgn-timeline-sec, .kgn-portfolio-grid {
    /* keep their styles but only relevant ones render if we re-enable later */
}

/* =========================================================================
   FONTSWAP — layered, fixed-bounds font cycling (Bebas → Julietta → Montserrat)
   Each variant lives in its own absolutely-positioned layer so swooshes and
   wider glyphs never push the surrounding text. Container width/height stay
   constant, only opacity is animated.
   ========================================================================= */
.kgn-fontswap {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    color: inherit;
    isolation: isolate;
    overflow: hidden;        /* hard-clip any font that exceeds bounds */
}
.kgn-fontswap__a,
.kgn-fontswap__b,
.kgn-fontswap__c {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: steps(1, end);
}
.kgn-fontswap__a {
    /* Bebas Neue Bold — frame 1 */
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    animation-name: kgnSwapA;
}
.kgn-fontswap__b {
    /* Julietta Messie — frame 2 (script, mixed-case) */
    font-family: var(--f-script);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    animation-name: kgnSwapB;
}
.kgn-fontswap__c {
    /* Montserrat — frame 3 */
    font-family: var(--f-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    animation-name: kgnSwapC;
}
@keyframes kgnSwapA {
    0%, 30%       { opacity: 1; }
    33.33%, 100%  { opacity: 0; }
}
@keyframes kgnSwapB {
    0%, 30%        { opacity: 0; }
    33.33%, 63.33% { opacity: 1; }
    66.66%, 100%   { opacity: 0; }
}
@keyframes kgnSwapC {
    0%, 63.33%    { opacity: 0; }
    66.66%, 96.66% { opacity: 1; }
    100%          { opacity: 0; }
}

/* Variant: "Video" inside About headline.
   Container width matches Bebas Bold "VIDEO"; per-frame font-size keeps the
   visual weight similar without overflowing. */
.kgn-fontswap--video {
    width: 2.3em;
    height: 0.95em;
}
.kgn-fontswap--video .kgn-fontswap__a { font-size: 1em; }
.kgn-fontswap--video .kgn-fontswap__b { font-size: 1em; }
.kgn-fontswap--video .kgn-fontswap__c { font-size: 0.62em; }

/* Variant: "Story" inside the contact hashtag.
   Hashtag uses inline-flex; we size the swap relative to its own font-size. */
.kgn-vg-contact__hashtag .kgn-fontswap--story {
    width: 2.2em;
    height: 0.9em;
}
.kgn-vg-contact__hashtag .kgn-fontswap--story .kgn-fontswap__a { font-size: 1em; }
.kgn-vg-contact__hashtag .kgn-fontswap--story .kgn-fontswap__b { font-size: 0.95em; }
.kgn-vg-contact__hashtag .kgn-fontswap--story .kgn-fontswap__c { font-size: 0.62em; }

@media (prefers-reduced-motion: reduce) {
    .kgn-fontswap__a { opacity: 1; animation: none; }
    .kgn-fontswap__b,
    .kgn-fontswap__c { animation: none; }
}

/* =========================================================================
   FONT CYCLING ANIMATION — Bebas Bold → Julietta Messie → Montserrat
   ========================================================================= */
@keyframes kgnFontCycle {
    /* Bebas Neue Bold (default look) */
    0%, 30% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-style: normal;
    }
    /* Julietta Messie (script) */
    33.33%, 63.33% {
        font-family: var(--f-script);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        font-style: normal;
    }
    /* Montserrat Regular */
    66.66%, 96.66% {
        font-family: var(--f-body);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-style: normal;
    }
    /* Snap back to start at end of cycle */
    100% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-style: normal;
    }
}

.kgn-vg-font-cycle {
    display: inline-block;
    animation: kgnFontCycle 6s steps(1, end) infinite;
    will-change: font-family;
}

/* Word-level cycling: lock width so font swap doesn't reflow the sentence.
   The word renders centered inside a fixed-width inline-block, and per-font
   size adjustments keep all three frames optically similar. */
.kgn-vg-font-cycle--word {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    vertical-align: baseline;
    overflow: visible;
    animation-duration: 5.4s;
}

/* "Video" inside the About headline */
.kgn-vg-font-cycle--video {
    width: 1.9em;          /* matches Bebas Bold width — sentence never reflows */
    text-align: center;
}
/* Per-font tweaks — script is narrower so we scale it up;
   Montserrat is wider so we scale it down. */
@keyframes kgnFontCycleVideo {
    0%, 30% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-size: 1em;
    }
    33.33%, 63.33% {
        font-family: var(--f-script);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        font-size: 1.35em;
    }
    66.66%, 96.66% {
        font-family: var(--f-body);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        font-size: 0.78em;
    }
    100% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-size: 1em;
    }
}
.kgn-vg-font-cycle--video { animation-name: kgnFontCycleVideo; }

/* Hashtag last word — STORY */
.kgn-vg-contact__hashtag .kgn-vg-font-cycle--word {
    width: 4ch;                /* lock width — "STORY" Bebas Bold size */
    text-align: center;
    overflow: visible;
}
@keyframes kgnFontCycleStory {
    0%, 30% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-size: 1em;
    }
    33.33%, 63.33% {
        font-family: var(--f-script);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        font-size: 1.25em;
    }
    66.66%, 96.66% {
        font-family: var(--f-body);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        font-size: 0.82em;
    }
    100% {
        font-family: var(--f-primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.005em;
        font-size: 1em;
    }
}
.kgn-vg-contact__hashtag .kgn-vg-font-cycle--word { animation-name: kgnFontCycleStory; }

@media (prefers-reduced-motion: reduce) {
    .kgn-vg-font-cycle { animation: none; }
}

/* =========================================================================
   FOREGROUND 3D LOGO — overlay on warm-white sections, hidden behind dark
   ========================================================================= */
.kgn-bg-3d {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
    mix-blend-mode: multiply;
}
.kgn-bg-3d__viewer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 1200px);
    height: min(92vh, 880px);
    transform: translate(-50%, -50%);
    background: transparent;
    --poster-color: transparent;
    opacity: 0.55;
    filter: blur(5px) saturate(1) contrast(1.1);
    will-change: transform, filter;
    pointer-events: none;
    touch-action: none;
}
.kgn-bg-3d__viewer::part(default-progress-bar) { display: none; }

/* Warm-white sections sit BELOW the 3D overlay */
.kgn-vg-about,
.kgn-vg-works,
.kgn-vg-contact,
.kgn-vg-footer { position: relative; z-index: 1; }

/* Dark / video sections COVER the 3D overlay */
.kgn-vg-hero,
.kgn-vg-services { position: relative; z-index: 3; }

/* Nav (z-index 100), modal (1000), cursor (10000) already sit above the overlay */

@media (max-width: 720px) {
    .kgn-bg-3d__viewer { opacity: 0.4; filter: blur(7px); width: 110vw; height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
    .kgn-bg-3d { display: none; }
}

/* =========================================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   COOKIE CONSENT BANNER — GDPR + ePrivacy + SK § 109/2021 compliant
   ========================================================================= */
.kgn-consent {
    position: fixed;
    bottom: clamp(16px, 2.5vh, 28px);
    left: clamp(16px, 3vw, 32px);
    right: clamp(16px, 3vw, 32px);
    z-index: 9997;
    display: flex; justify-content: center;
    pointer-events: none;
}
.kgn-consent[hidden] { display: none; }
.kgn-consent__panel {
    width: 100%;
    max-width: 880px;
    background: rgba(43, 43, 43, 0.92);
    color: var(--c-paper);
    border: 1px solid rgba(255, 253, 246, 0.16);
    border-radius: 18px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 246, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.30),
        0 30px 60px -22px rgba(0, 0, 0, 0.55),
        0 12px 28px -14px rgba(0, 0, 0, 0.45);
    padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
    pointer-events: auto;
    animation: kgn-consent-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes kgn-consent-rise {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.kgn-consent__title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(18px, 1.4vw, 22px);
    letter-spacing: 0.12em;
    line-height: 1;
    margin: 0 0 10px;
    color: var(--c-paper);
}
.kgn-consent__desc {
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 253, 246, 0.78);
    margin: 0;
}
.kgn-consent__link {
    color: var(--c-paper);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 253, 246, 0.4);
    transition: border-color 240ms var(--ease-out);
    white-space: nowrap;
}
.kgn-consent__link:hover { border-bottom-color: var(--c-paper); }

.kgn-consent__options {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 253, 246, 0.12);
}
@media (min-width: 720px) {
    .kgn-consent__options { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.kgn-consent__options[hidden] { display: none; }
.kgn-consent__option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid rgba(255, 253, 246, 0.08);
    border-radius: 10px;
    background: rgba(255, 253, 246, 0.03);
    cursor: pointer;
    transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.kgn-consent__option:hover { background: rgba(255, 253, 246, 0.06); border-color: rgba(255, 253, 246, 0.18); }
.kgn-consent__option input[type="checkbox"] {
    margin: 4px 0 0;
    width: 16px; height: 16px;
    accent-color: var(--c-paper);
    flex: 0 0 auto;
    cursor: pointer;
}
.kgn-consent__option input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.kgn-consent__option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kgn-consent__option-title {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--c-paper);
}
.kgn-consent__option-desc {
    font-family: var(--f-body);
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255, 253, 246, 0.68);
}

.kgn-consent__actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}
.kgn-consent__btn {
    font-family: var(--f-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.16em;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 280ms var(--ease-out), color 280ms var(--ease-out),
                border-color 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.kgn-consent__btn--ghost {
    background: transparent;
    color: rgba(255, 253, 246, 0.82);
    border-color: rgba(255, 253, 246, 0.30);
}
.kgn-consent__btn--ghost:hover {
    color: var(--c-paper);
    border-color: rgba(255, 253, 246, 0.6);
    background: rgba(255, 253, 246, 0.04);
}
.kgn-consent__btn--primary {
    background: var(--c-paper);
    color: var(--c-ink);
    border-color: var(--c-paper);
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
}
.kgn-consent__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.55);
}
.kgn-consent__btn:focus-visible {
    outline: 2px solid var(--c-paper);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .kgn-consent__actions { justify-content: stretch; }
    .kgn-consent__btn { flex: 1 1 calc(50% - 5px); padding: 14px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .kgn-consent__panel { animation: none; }
}
