:root {
	--ink: #071b2e;
	--panel: #24282d;
	--blue: #0878d1;
	--bright: #2baaff;
	--paper: #f5f6f7;
	--silver: #dfe3e6;
	--side: 17.4vw;
}

html { scroll-behavior: smooth; }
body.ktt-home { margin: 0; background: var(--panel); color: var(--ink); font-family: "Source Sans Pro", Helvetica, sans-serif; font-size: 18px; letter-spacing: 0; line-height: 1.45; }
.ktt-home #wrapper { padding: 0 !important; background: var(--panel); }
.ktt-home a { border: 0; }

/* Fixed left navigation — the defining layout feature */
.side-panel { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side); min-height: 640px; overflow: hidden; background: var(--blue); color: #fff; }
.side-panel::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 72%; background: var(--panel); clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
.side-panel::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(122deg, transparent 49.6%, rgba(43,170,255,.2) 49.8%, transparent 50.1%), radial-gradient(circle at 15% 12%, rgba(43,170,255,.22), transparent 26%); background-size: 370px 370px, 100% 100%; }
.side-signal { position: absolute; z-index: 5; right: 9%; top: 4.5%; display: flex; align-items: flex-end; gap: 4px; height: 18px; }
.side-signal i { display: block; width: 2px; height: 6px; background: var(--bright); animation: signal 1.35s ease-in-out infinite alternate; }
.side-signal i:nth-child(2) { height: 12px; animation-delay: -.5s; }
.side-signal i:nth-child(3) { height: 18px; animation-delay: -.9s; }
.side-logo { position: relative; z-index: 3; display: flex; width: max-content; align-items: center; justify-content: center; margin: 2.8vh auto 0; color: #fff; }
.side-logo img { display: block; width: clamp(112px, 7vw, 145px); height: auto; max-height: none; object-fit: contain; filter: drop-shadow(0 9px 16px rgba(0,0,0,.3)); animation: logo-breathe 5s ease-in-out infinite; }
.side-nav { position: relative; z-index: 4; margin-top: clamp(3rem, 8vh, 7rem); }
.side-nav a { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem 9%; color: rgba(255,255,255,.9); font-size: .93rem; font-weight: 600; }
.side-nav a::after { content: ""; position: absolute; inset: 0 100% 0 0; z-index: -1; background: var(--blue); transition: right .3s ease; }
.side-nav a:hover { color: #fff !important; }
.side-nav a:hover::after { right: 0; }
.side-nav span { width: 1.4rem; color: rgba(255,255,255,.35); font-size: .58rem; letter-spacing: .1em; }
.side-contact { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 31%; padding: 9.5vh 9% 2.5vh; }
.side-contact::before { content: ""; position: absolute; left: -18%; top: 10%; width: 150%; height: 1px; background: rgba(255,255,255,.14); transform: rotate(-29deg); transform-origin: center; }
.side-contact div { margin-top: 1.2rem; }
.side-contact h2 { margin: 0 0 .2rem; color: #fff; font-size: .69rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side-contact p { margin: 0; color: rgba(255,255,255,.86); font-size: .69rem; line-height: 1.45; overflow-wrap: anywhere; }
.mobile-header { display: none; }

.site-canvas { margin-left: var(--side); background: #fff; }

/* Homepage showreel */
.portfolio-video { height: 800px; overflow: hidden; background: #071b2e; }
.portfolio-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Geometric proof bar matching the supplied reference */
.proof-strip { height: 18vh; min-height: 160px; display: grid; grid-template-columns: 37% 63%; overflow: hidden; background: #fff; }
.proof-number { position: relative; min-height: 0; display: flex; align-items: center; padding-left: 10%; overflow: hidden; background: #292d31; clip-path: polygon(0 0, 100% 0, 79% 100%, 0 100%); }
.proof-number::after { content: ""; position: absolute; left: 29%; top: -20%; height: 150%; width: 1px; background: rgba(255,255,255,.07); transform: rotate(-28deg); }
.proof-number strong { color: var(--bright); font-size: clamp(3rem, 4.2vw, 5.5rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.proof-number sup { font-size: .5em; vertical-align: top; }
.proof-copy { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: .75rem 8%; overflow: hidden; }
.proof-copy h1 { margin: 0; color: #25292d; font-size: clamp(1.6rem, 2.3vw, 3rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.proof-copy h1 strong { color: var(--blue); font-weight: 600; }
.proof-copy p { margin: .4rem 0 0; color: #60707c; font-size: .78rem; }

.client-strip { min-height: 100px; padding: 1.15rem 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #e4e7e9; color: #9ba4aa; }
.client-track { display: flex; width: max-content; animation: client-roll 24s linear infinite; }
.client-track > div { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 6rem); padding-right: clamp(2.5rem, 5vw, 6rem); }
.client-strip span { width: clamp(150px, 16vw, 280px); text-align: center; white-space: nowrap; font-size: clamp(.85rem, 1.6vw, 1.8rem); font-weight: 600; letter-spacing: -.04em; filter: grayscale(1); }
.client-strip i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--bright); opacity: .55; }

/* Continued content below the first-screen composition */
.welcome-section { min-height: 650px; display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); }
.welcome-mark { position: relative; min-height: 580px; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.welcome-mark::before, .welcome-mark::after { content: ""; position: absolute; border: 1px solid rgba(43,170,255,.25); border-radius: 50%; }
.welcome-mark::before { width: 75%; aspect-ratio: 1; }
.welcome-mark::after { width: 52%; aspect-ratio: 1; border-style: dashed; }
.welcome-mark img { position: relative; z-index: 3; display: block; width: 43%; height: auto; max-height: none; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35)); animation: logo-float 5.5s ease-in-out infinite; }
.welcome-mark .welcome-word { position: absolute; left: 7%; bottom: 7%; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: clamp(5rem, 9vw, 11rem); font-style: italic; }
.brand-orbit { position: absolute; z-index: 1; border-radius: 50%; }
.orbit-a { width: 74%; aspect-ratio: 1; border: 1px solid rgba(43,170,255,.32); animation: orbit-spin 22s linear infinite; }
.orbit-b { width: 53%; aspect-ratio: 1; border: 1px dashed rgba(255,255,255,.21); animation: orbit-spin 29s linear infinite reverse; }
.orbit-dot { position: absolute; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 22px var(--bright); }
.dot-a { top: 19%; left: 29%; animation: dot-pulse 1.7s ease-in-out infinite alternate; }
.dot-b { right: 20%; bottom: 25%; width: 7px; height: 7px; animation: dot-pulse 1.7s ease-in-out infinite alternate-reverse; }
.welcome-copy { align-self: center; padding: 10%; }
.welcome-copy .eyebrow { margin: 0 0 1.5rem; color: var(--blue); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.welcome-copy h2 { margin: 0 0 2rem; color: var(--ink); font-size: clamp(3rem, 5vw, 6rem); font-weight: 300; letter-spacing: -.055em; line-height: .94; }
.welcome-copy > p:not(.eyebrow) { max-width: 650px; color: #586874; font-size: 1rem; }
.blue-link { display: inline-flex; gap: 2.5rem; padding: .9rem 0; color: var(--blue); border-bottom: 1px solid var(--blue) !important; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.service-panels { padding: 4rem 3%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; background: #24282d; }
.service-heading { grid-column: 1 / -1; padding-bottom: 1.5rem; text-align: center; }
.service-heading p { margin: 0 0 .5rem; color: var(--bright); font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.service-heading h2 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2.4rem, 4vw, 4.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.service-panels a { position: relative; min-width: 0; overflow: hidden; background: #191d21; color: #fff; transition: transform .3s ease, background .3s ease; }
.service-panels a:hover { background: var(--blue); transform: translateY(-5px); }
.service-panels img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, filter .35s ease; }
.service-panels a:hover img { filter: saturate(1.08) contrast(1.04); transform: scale(1.035); }
.service-panels span { display: block; margin: 1rem 1rem .3rem; color: var(--bright); font-size: .58rem; font-weight: 600; letter-spacing: .15em; }
.service-panels a:hover span { color: #fff; }
.service-panels h3 { min-height: 3.1em; margin: 0 1rem 1.25rem; color: #fff; font-size: clamp(.85rem, 1.05vw, 1.15rem); font-weight: 600; letter-spacing: .025em; line-height: 1.2; text-transform: uppercase; }

.bottom-cta { min-height: 370px; padding: 6rem 7%; display: flex; align-items: center; justify-content: space-between; gap: 3rem; background: var(--blue); color: #fff; }
.bottom-cta p { margin: 0 0 .8rem; font-size: .73rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.bottom-cta h2 { margin: 0; color: #fff; font-size: clamp(3rem, 5.5vw, 7rem); font-weight: 300; letter-spacing: -.055em; line-height: .9; }
.bottom-cta > a { width: 150px; height: 150px; flex: 0 0 150px; display: flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid rgba(255,255,255,.55) !important; border-radius: 50%; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s; }
.bottom-cta > a:hover { background: #fff; color: var(--blue) !important; }

.canvas-footer { padding: 1.5rem 4%; display: flex; justify-content: space-between; background: #041321; color: rgba(255,255,255,.48); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.canvas-footer div { display: flex; gap: 2rem; }
.canvas-footer a:hover { color: var(--bright) !important; }

/* Premium motion system */
.motion-cursor { position: fixed; z-index: 9999; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid rgba(43,170,255,.78); border-radius: 50%; pointer-events: none; opacity: 0; transition: width .25s, height .25s, left .25s, top .25s, background .25s, opacity .25s; }
.motion-cursor::after { content: ""; position: absolute; width: 4px; height: 4px; left: 50%; top: 50%; border-radius: 50%; background: var(--bright); transform: translate(-50%,-50%); }
.motion-cursor.is-active { opacity: .8; }
.motion-cursor.is-hovering { left: -30px; top: -30px; width: 60px; height: 60px; background: rgba(43,170,255,.13); }

.js .side-panel { transform: translateX(-101%); }
.motion-ready .side-panel { transform: translateX(0); transition: transform .78s cubic-bezier(.76,0,.18,1); }
.js .side-panel::before { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
.motion-ready .side-panel::before { animation: sidebar-dark-wipe .9s cubic-bezier(.72,0,.16,1) .5s both; }
.js .side-logo { opacity: 0; transform: translateY(-22px) scale(.88); }
.motion-ready .side-logo { opacity: 1; transform: translateY(0) scale(1); transition: opacity .55s ease 1.05s, transform .7s cubic-bezier(.18,.8,.2,1) 1.05s; }
.js .side-signal { opacity: 0; transform: translateY(-12px); }
.motion-ready .side-signal { opacity: 1; transform: translateY(0); transition: opacity .45s ease 1.35s, transform .5s ease 1.35s; }
.js .side-contact { opacity: 0; transform: translateY(34px); }
.motion-ready .side-contact { opacity: 1; transform: translateY(0); transition: opacity .55s ease 1.45s, transform .7s cubic-bezier(.18,.8,.2,1) 1.45s; }
.motion-ready .side-contact::before { animation: contact-line-sweep .9s ease 1.7s both; }

.js .side-nav a { opacity: 0; transform: translateX(-18px); }
.motion-ready .side-nav a { opacity: 1; transform: translateX(0); transition: opacity .5s ease, transform .5s ease; }
.motion-ready .side-nav a:nth-child(1) { transition-delay: 1.2s; }
.motion-ready .side-nav a:nth-child(2) { transition-delay: 1.28s; }
.motion-ready .side-nav a:nth-child(3) { transition-delay: 1.36s; }
.motion-ready .side-nav a:nth-child(4) { transition-delay: 1.44s; }
.motion-ready .side-nav a:nth-child(5) { transition-delay: 1.52s; }
.motion-ready .side-nav a:nth-child(6) { transition-delay: 1.6s; }

.js .proof-strip, .js .welcome-section, .js .service-panels > a, .js .bottom-cta { opacity: 0; transform: translateY(30px); }
.proof-strip.in-view, .welcome-section.in-view, .service-panels > a.in-view, .bottom-cta.in-view { opacity: 1; transform: translateY(0); transition: opacity .75s ease, transform .85s cubic-bezier(.18,.72,.2,1); }
.service-panels > a:nth-child(2) { transition-delay: .12s; }
.service-panels > a:nth-child(3) { transition-delay: .24s; }

@keyframes signal { to { height: 18px; opacity: .35; } }
@keyframes logo-breathe { 50% { transform: translateY(-5px) rotate(1.5deg); filter: drop-shadow(0 15px 24px rgba(0,0,0,.42)); } }
@keyframes logo-float { 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse { to { transform: scale(1.7); opacity: .4; } }
@keyframes client-roll { to { transform: translateX(-50%); } }
@keyframes sidebar-dark-wipe {
	0% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
	62% { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 92%); }
	100% { clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
}
@keyframes contact-line-sweep { from { opacity: 0; transform: rotate(-29deg) scaleX(0); } to { opacity: 1; transform: rotate(-29deg) scaleX(1); } }

@media screen and (max-width: 1180px) {
	:root { --side: 250px; }
	.side-logo img { width: 108px; }
	.side-nav a { font-size: .82rem; }
	.proof-strip { grid-template-columns: 42% 58%; }
	.service-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (max-width: 800px) {
	.side-panel { display: none; }
	.mobile-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 72px; padding: 0 1.4rem; display: flex; align-items: center; justify-content: space-between; background: rgba(7,27,46,.94); backdrop-filter: blur(12px); }
	.mobile-header > a:first-child { position: absolute; left: 50%; display: flex; align-items: center; color: #fff; transform: translateX(-50%); }
	.mobile-header img { display: block; width: 46px; height: auto; max-height: 58px; object-fit: contain; }
	.mobile-menu-link { margin-left: auto; color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
	.site-canvas { margin-left: 0; padding-top: 72px; }
	.portfolio-video { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
	.proof-strip { height: auto; min-height: 230px; grid-template-columns: 42% 58%; }
	.proof-number { padding-left: 8%; }
	.proof-number strong { font-size: clamp(3rem, 10vw, 5rem); }
	.proof-copy { padding: 2rem 8%; }
	.client-strip { height: auto; min-height: 90px; padding-block: 1rem; }
	.welcome-section { grid-template-columns: 1fr; }
	.welcome-mark { min-height: 460px; }
	.service-panels { padding: 3rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
	.service-panels h3 { font-size: .85rem; }
}

@media screen and (max-width: 520px) {
	.service-panels { grid-template-columns: 1fr; }
	.proof-strip { min-height: 320px; grid-template-columns: 1fr; grid-template-rows: 45% 55%; }
	.proof-number { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
	.proof-number strong { font-size: 3.7rem; }
	.proof-copy h1 { font-size: 2rem; }
	.welcome-mark { min-height: 360px; }
	.welcome-copy { padding: 5rem 1.5rem; }
	.bottom-cta { padding: 5rem 1.5rem; align-items: flex-start; flex-direction: column; }
	.bottom-cta > a { width: 120px; height: 120px; flex-basis: 120px; }
	.canvas-footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
	.canvas-footer div { gap: 1rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
